diff options
author | alc <alc@FreeBSD.org> | 2010-07-09 19:38:30 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-07-09 19:38:30 +0000 |
commit | 7c09dc242c035943fb8ed54909fd0a8461cb99ba (patch) | |
tree | 59894efa2a34a762f15c9dc8d9456b6f9e56f524 /sys/vm/vm_page.h | |
parent | 4ef0eb46da85379be188033bd5af465eaa2f1b0d (diff) | |
download | FreeBSD-src-7c09dc242c035943fb8ed54909fd0a8461cb99ba.zip FreeBSD-src-7c09dc242c035943fb8ed54909fd0a8461cb99ba.tar.gz |
Add support for the VM_ALLOC_COUNT() hint to vm_page_alloc(). Consequently,
the maintenance of vm_pageout_deficit can be localized to just two places:
vm_page_alloc() and vm_pageout_scan().
This change also corrects an off-by-one error in the maintenance of
vm_pageout_deficit. Historically, the buffer cache functions, allocbuf()
and vm_hold_load_pages(), have not taken into account that vm_page_alloc()
already increments vm_pageout_deficit by one.
Reviewed by: kib
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r-- | sys/vm/vm_page.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 62868cd..a877c43 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -321,7 +321,6 @@ extern struct vpglocks vm_page_queue_lock; #define VM_ALLOC_COUNT_SHIFT 16 #define VM_ALLOC_COUNT(count) ((count) << VM_ALLOC_COUNT_SHIFT) -#define VM_ALLOC_COUNT_MASK VM_ALLOC_COUNT(0xffff) void vm_page_flag_set(vm_page_t m, unsigned short bits); void vm_page_flag_clear(vm_page_t m, unsigned short bits); |