aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/nwfs
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2006-08-09 17:43:27 +0000
committerAlan Cox <alc@FreeBSD.org>2006-08-09 17:43:27 +0000
commit5786be7cc764b4afb216ff9ca21cab50f69ddcc3 (patch)
treed2a2ffe29a7c6e1e6830fd09fc671a4ca50cd807 /sys/fs/nwfs
parenta35944329047fa86df0f2ca27a862bf670cc5892 (diff)
downloadsrc-5786be7cc764b4afb216ff9ca21cab50f69ddcc3.tar.gz
src-5786be7cc764b4afb216ff9ca21cab50f69ddcc3.zip
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().
Notes
Notes: svn path=/head/; revision=161125
Diffstat (limited to 'sys/fs/nwfs')
-rw-r--r--sys/fs/nwfs/nwfs_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nwfs/nwfs_io.c b/sys/fs/nwfs/nwfs_io.c
index b74cd4a4f488..3071fe1f78ae 100644
--- a/sys/fs/nwfs/nwfs_io.c
+++ b/sys/fs/nwfs/nwfs_io.c
@@ -483,7 +483,7 @@ nwfs_getpages(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);