diff options
author | Alan Cox <alc@FreeBSD.org> | 2012-07-24 02:35:30 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2012-07-24 02:35:30 +0000 |
commit | 2cba1ccd0ecb54e0273e8c48b522686219604d5f (patch) | |
tree | 9b2117a6f7846a29e9f941192ffc75852e12a426 /sys/vm | |
parent | 59a757243700e01edfc668be83da3c60313fc5a2 (diff) | |
download | src-2cba1ccd0ecb54e0273e8c48b522686219604d5f.tar.gz src-2cba1ccd0ecb54e0273e8c48b522686219604d5f.zip |
Addendum to r238604. If the inactive queue scan isn't restarted, then
the variable "addl_page_shortage_init" isn't needed.
X-MFC after: r238604
Notes
Notes:
svn path=/head/; revision=238732
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_pageout.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 7643d97c9f61..6ac0acbf4084 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -873,7 +873,7 @@ vm_pageout_scan(int pass) vm_page_t m, next; struct vm_page marker; int page_shortage, maxscan, pcount; - int addl_page_shortage, addl_page_shortage_init; + int addl_page_shortage; vm_object_t object; int actcount; int vnodes_skipped = 0; @@ -889,13 +889,13 @@ vm_pageout_scan(int pass) */ uma_reclaim(); - addl_page_shortage_init = atomic_readandclear_int(&vm_pageout_deficit); + addl_page_shortage = atomic_readandclear_int(&vm_pageout_deficit); /* * Calculate the number of pages we want to either free or move * to the cache. */ - page_shortage = vm_paging_target() + addl_page_shortage_init; + page_shortage = vm_paging_target() + addl_page_shortage; vm_pageout_init_marker(&marker, PQ_INACTIVE); @@ -921,7 +921,6 @@ vm_pageout_scan(int pass) maxlaunder = 10000; vm_page_lock_queues(); queues_locked = TRUE; - addl_page_shortage = addl_page_shortage_init; maxscan = cnt.v_inactive_count; for (m = TAILQ_FIRST(&vm_page_queues[PQ_INACTIVE].pl); |