summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2020-03-04 13:27:11 +0000
committeranton <anton@cvs.openbsd.org>2020-03-04 13:27:11 +0000
commitb2b5c7d12800d8e0ce31e2677e66fdd54324d58c (patch)
treea68da029890e6d9c375e81179c6546af23cdcb93 /sys/kern/vfs_bio.c
parent01fdf6983f1d620cf888ddb4d47d017663114840 (diff)
Make an assertion free from side effects. The intention was probably to
assert that the wire count is equal to 1 and not unconditionally set it to 1. ok kettenis@ mpi@
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 20c7a518e34..b92ab10b8aa 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_bio.c,v 1.196 2020/01/26 04:22:36 tedu Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.197 2020/03/04 13:27:10 anton Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*
@@ -564,7 +564,7 @@ bread_cluster_callback(struct buf *bp)
struct vm_page *pg = uvm_pagelookup(oldobj,
xbpp[i]->b_poffs + ptoa(page));
KASSERT(pg != NULL);
- KASSERT(pg->wire_count = 1);
+ KASSERT(pg->wire_count == 1);
uvm_pagerealloc(pg, newobj, xbpp[i]->b_poffs + ptoa(page));
}
xbpp[i]->b_pobj = newobj;