From 1b8e5404ee43d51a47f50d452f1f170f3ca57b22 Mon Sep 17 00:00:00 2001 From: dyson Date: Sun, 5 Nov 1995 20:46:03 +0000 Subject: Greatly simplify the msync code. Eliminate complications in vm_pageout for msyncing. Remove a bug that manifests itself primarily on NFS (the dirty range on the buffers is not set on msync.) --- 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 1e45a1e..4793bcf 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.67 1995/10/19 23:48:25 dyson Exp $ + * $Id: vfs_bio.c,v 1.68 1995/10/29 15:31:13 phk Exp $ */ /* @@ -818,7 +818,7 @@ vfs_setdirty(struct buf *bp) { * is not cleared simply by protecting pages off. */ if ((bp->b_flags & B_VMIO) && - ((object = bp->b_pages[0]->object)->flags & OBJ_WRITEABLE)) { + ((object = bp->b_pages[0]->object)->flags & (OBJ_WRITEABLE|OBJ_CLEANING))) { /* * test the pages to see if they have been modified directly * by users through the VM system. -- cgit v1.1