summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-10-22 18:41:32 +0000
committeralc <alc@FreeBSD.org>2003-10-22 18:41:32 +0000
commit794553172bba064691d1e2c2beb861de88f2ec12 (patch)
tree47d61f714782fb39adfa2a86dd96d10ca82461af /sys/vm/vm_page.c
parentbac1ff714fbbdb68360b526e681f1a00024f44c4 (diff)
downloadFreeBSD-src-794553172bba064691d1e2c2beb861de88f2ec12.zip
FreeBSD-src-794553172bba064691d1e2c2beb861de88f2ec12.tar.gz
- Retire vm_pageout_page_free(). Instead, use vm_page_select_cache() from
vm_pageout_scan(). Rationale: I don't like leaving a busy page in the cache queue with neither the vm object nor the vm page queues lock held. - Assert that the page is active in vm_pageout_page_stats().
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 58ea6f2..56c1c23 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -698,7 +698,7 @@ vm_page_rename(vm_page_t m, vm_object_t new_object, vm_pindex_t new_pindex)
* This routine must be called at splvm().
* This routine may not block.
*/
-static vm_page_t
+vm_page_t
vm_page_select_cache(int color)
{
vm_page_t m;
OpenPOWER on IntegriCloud