From 268e9c53977f231aa725094c655cf61174faae6e Mon Sep 17 00:00:00 2001 From: John Dyson Date: Fri, 31 May 1996 00:41:37 +0000 Subject: [PATCH] Keep brelse from freeing busy pages. --- sys/kern/vfs_bio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 1905ceeea0a..6b4101495c1 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -18,7 +18,7 @@ * 5. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: vfs_bio.c,v 1.90 1996/05/18 03:37:06 dyson Exp $ + * $Id: vfs_bio.c,v 1.91 1996/05/24 05:21:58 dyson Exp $ */ /* @@ -609,7 +609,7 @@ vfs_vmio_release(bp) wakeup(m); } vm_page_unwire(m); - if (m->wire_count == 0) { + if (m->wire_count == 0 && (m->flags & PG_BUSY) == 0) { if (m->valid) { if(m->dirty == 0) vm_page_test_dirty(m);