From b2b5c7d12800d8e0ce31e2677e66fdd54324d58c Mon Sep 17 00:00:00 2001 From: anton Date: Wed, 4 Mar 2020 13:27:11 +0000 Subject: 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@ --- sys/kern/vfs_bio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/vfs_bio.c') 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; -- cgit v1.2.3