summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_bio.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-08-09 17:43:27 +0000
committeralc <alc@FreeBSD.org>2006-08-09 17:43:27 +0000
commitb98eae58a6867b77b74dac934e77f07e431d4fee (patch)
treed2a2ffe29a7c6e1e6830fd09fc671a4ca50cd807 /sys/nfsclient/nfs_bio.c
parent440c15fc675beadbaf4ffa12a4932478fa2c5e4b (diff)
downloadFreeBSD-src-b98eae58a6867b77b74dac934e77f07e431d4fee.zip
FreeBSD-src-b98eae58a6867b77b74dac934e77f07e431d4fee.tar.gz
Introduce a field to struct vm_page for storing flags that are
synchronized by the lock on the object containing the page. Transition PG_WANTED and PG_SWAPINPROG to use the new field, eliminating the need for holding the page queues lock when setting or clearing these flags. Rename PG_WANTED and PG_SWAPINPROG to VPO_WANTED and VPO_SWAPINPROG, respectively. Eliminate the assertion that the page queues lock is held in vm_page_io_finish(). Eliminate the acquisition and release of the page queues lock around calls to vm_page_io_finish() in kern_sendfile() and vfs_unbusy_pages().
Diffstat (limited to 'sys/nfsclient/nfs_bio.c')
-rw-r--r--sys/nfsclient/nfs_bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c
index 1fd25c5..445f7fd 100644
--- a/sys/nfsclient/nfs_bio.c
+++ b/sys/nfsclient/nfs_bio.c
@@ -240,7 +240,7 @@ nfs_getpages(struct vop_getpages_args *ap)
* now tell them that it is ok to use.
*/
if (!error) {
- if (m->flags & PG_WANTED)
+ if (m->oflags & VPO_WANTED)
vm_page_activate(m);
else
vm_page_deactivate(m);
OpenPOWER on IntegriCloud