]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Simplify entry to vm_pageout_clean(). Expect the page to be locked.
authorAlan Cox <alc@FreeBSD.org>
Wed, 30 Jun 2010 17:20:33 +0000 (17:20 +0000)
committerAlan Cox <alc@FreeBSD.org>
Wed, 30 Jun 2010 17:20:33 +0000 (17:20 +0000)
commit95976f3f38d025769d7f31c2e92e217f0b1be888
treee5042f03dfee9b41774c4d0eba334977c4724214
parent17d2646b7ce56dbc69f09f3021e9131d6f5df3e4
Simplify entry to vm_pageout_clean().  Expect the page to be locked.
Previously, the caller unlocked the page, and vm_pageout_clean()
immediately reacquired the page lock.  Also, assert rather than test
that the page is neither busy nor held.  Since vm_pageout_clean() is
called with the object and page locked, the page can't have changed
state since the caller verified that the page is neither busy nor
held.
sys/vm/vm_pageout.c