mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Eliminate unnecessary page queues locking.
This commit is contained in:
parent
eac058828b
commit
61a2a5dcd2
2 changed files with 0 additions and 4 deletions
|
|
@ -571,12 +571,10 @@ 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;
|
||||
vm_page_undirty(pages[i]);
|
||||
}
|
||||
vm_page_unlock_queues();
|
||||
}
|
||||
return rtvals[0];
|
||||
#endif /* NWFS_RWCACHE */
|
||||
|
|
|
|||
|
|
@ -641,12 +641,10 @@ smbfs_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;
|
||||
vm_page_undirty(pages[i]);
|
||||
}
|
||||
vm_page_unlock_queues();
|
||||
}
|
||||
return rtvals[0];
|
||||
#endif /* SMBFS_RWGENERIC */
|
||||
|
|
|
|||
Loading…
Reference in a new issue