From b98eae58a6867b77b74dac934e77f07e431d4fee Mon Sep 17 00:00:00 2001 From: alc Date: Wed, 9 Aug 2006 17:43:27 +0000 Subject: 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(). --- sys/fs/smbfs/smbfs_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/smbfs/smbfs_io.c') diff --git a/sys/fs/smbfs/smbfs_io.c b/sys/fs/smbfs/smbfs_io.c index 756ea01..0f8ed49 100644 --- a/sys/fs/smbfs/smbfs_io.c +++ b/sys/fs/smbfs/smbfs_io.c @@ -551,7 +551,7 @@ smbfs_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); -- cgit v1.1