aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2010-07-05 21:13:32 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2010-07-05 21:13:32 +0000
commit5f195aa32e17de9e4ff3fc4262a3e62ea47f30bf (patch)
tree3e3d325673e269e1bed29f2e51cf834666ce009b /sys/vm/vm_page.h
parentec1f83f78e35ab051a27808779653eab7fdb9805 (diff)
downloadsrc-5f195aa32e17de9e4ff3fc4262a3e62ea47f30bf.tar.gz
src-5f195aa32e17de9e4ff3fc4262a3e62ea47f30bf.zip
Add the ability for the allocflag argument of the vm_page_grab() to
specify the increment of vm_pageout_deficit when sleeping due to page shortage. Then, in allocbuf(), the code to allocate pages when extending vmio buffer can be replaced by a call to vm_page_grab(). Suggested and reviewed by: alc MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=209713
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r--sys/vm/vm_page.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index 1b2f39a7de18..08290259ca80 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -317,6 +317,11 @@ extern struct vpglocks vm_page_queue_lock;
#define VM_ALLOC_NOBUSY 0x0200 /* Do not busy the page */
#define VM_ALLOC_IFCACHED 0x0400 /* Fail if the page is not cached */
#define VM_ALLOC_IFNOTCACHED 0x0800 /* Fail if the page is cached */
+#define VM_ALLOC_IGN_SBUSY 0x1000 /* vm_page_grab() only */
+
+#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);