Date: Tue, 30 Dec 2003 17:44:45 -0800 (PST) From: Alan Cox <alc@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm vm_page.c Message-ID: <200312310144.hBV1ijdJ020293@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
alc 2003/12/30 17:44:45 PST
FreeBSD src repository
Modified files:
sys/vm vm_page.c
Log:
Simplify vm_page_grab(): Don't bother with the generation check. If the
vm object hasn't changed, the desired page will be at or near the root
of the vm object's splay tree, making vm_page_lookup() cheap. (The only
lock required for vm_page_lookup() is already held.) If, however, the
vm object has changed and retry was requested, eliminating the generation
check also eliminates a pointless acquisition and release of the page
queues lock.
Revision Changes Path
1.272 +6 -18 src/sys/vm/vm_page.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312310144.hBV1ijdJ020293>
