o Modify vm_page_grab() to accept VM_ALLOC_WIRED.
This commit is contained in:
parent
35945a74ac
commit
2c071f61f0
@ -1532,7 +1532,11 @@ vm_page_grab(vm_object_t object, vm_pindex_t pindex, int allocflags)
|
||||
splx(s);
|
||||
goto retrylookup;
|
||||
} else {
|
||||
vm_page_lock_queues();
|
||||
if (allocflags & VM_ALLOC_WIRED)
|
||||
vm_page_wire(m);
|
||||
vm_page_busy(m);
|
||||
vm_page_unlock_queues();
|
||||
return m;
|
||||
}
|
||||
}
|
||||
|
@ -313,7 +313,7 @@ extern struct mtx vm_page_queue_mtx;
|
||||
#define VM_ALLOC_SYSTEM 2
|
||||
#define VM_ALLOC_CLASS_MASK 3
|
||||
/* page allocation flags: */
|
||||
#define VM_ALLOC_WIRED 0x20 /* vm_page_alloc() only */
|
||||
#define VM_ALLOC_WIRED 0x20
|
||||
#define VM_ALLOC_ZERO 0x40
|
||||
#define VM_ALLOC_RETRY 0x80 /* vm_page_grab() only */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user