Copy some VM changes from smbfs_putpages() to nwfs_putpages(): lock
page queues, use vm_page_undirty().
This commit is contained in:
parent
ef9e45dd01
commit
f449c0f11d
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user