summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/fs/nwfs/nwfs_io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/nwfs/nwfs_io.c b/sys/fs/nwfs/nwfs_io.c
index b9e2e23..f1cd83c 100644
--- a/sys/fs/nwfs/nwfs_io.c
+++ b/sys/fs/nwfs/nwfs_io.c
@@ -575,10 +575,12 @@ nwfs_putpages(ap)
if (!error) {
int nwritten = round_page(count - uio.uio_resid) / PAGE_SIZE;
+ vm_page_lock_queues();
for (i = 0; i < nwritten; i++) {
rtvals[i] = VM_PAGER_OK;
- pages[i]->dirty = 0;
+ vm_page_undirty(pages[i]);
}
+ vm_page_unlock_queues();
}
return rtvals[0];
#endif /* NWFS_RWCACHE */
OpenPOWER on IntegriCloud