Copy some VM changes from smbfs_putpages() to nwfs_putpages(): lock

page queues, use vm_page_undirty().
This commit is contained in:
Tim J. Robbins 2003-02-27 11:35:22 +00:00
parent ef9e45dd01
commit f449c0f11d

View File

@ -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 */