diff options
author | alc <alc@FreeBSD.org> | 2002-07-19 19:35:06 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-07-19 19:35:06 +0000 |
commit | 1926ab155f1c8b9139f44c6dee9e11137e730405 (patch) | |
tree | 37146f4642887ac93c2b1882a28d48346a0eb3ea /sys/kern/vfs_bio.c | |
parent | ac25bfee41ebab7f11929de59784fd34782b3d4d (diff) | |
download | FreeBSD-src-1926ab155f1c8b9139f44c6dee9e11137e730405.zip FreeBSD-src-1926ab155f1c8b9139f44c6dee9e11137e730405.tar.gz |
o Use vm_page_alloc(... | VM_ALLOC_WIRED) in place of vm_page_wire().
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 9c19863..78754b6 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -2693,13 +2693,13 @@ allocbuf(struct buf *bp, int size) * with paging I/O, no matter which * process we are. */ - m = vm_page_alloc(obj, pi, VM_ALLOC_SYSTEM); + m = vm_page_alloc(obj, pi, + VM_ALLOC_SYSTEM | VM_ALLOC_WIRED); if (m == NULL) { VM_WAIT; vm_pageout_deficit += desiredpages - bp->b_npages; } else { vm_page_lock_queues(); - vm_page_wire(m); vm_page_wakeup(m); vm_page_unlock_queues(); bp->b_flags &= ~B_CACHE; @@ -3352,14 +3352,13 @@ tryagain: */ p = vm_page_alloc(kernel_object, ((pg - VM_MIN_KERNEL_ADDRESS) >> PAGE_SHIFT), - VM_ALLOC_SYSTEM); + VM_ALLOC_SYSTEM | VM_ALLOC_WIRED); if (!p) { vm_pageout_deficit += (to - from) >> PAGE_SHIFT; VM_WAIT; goto tryagain; } vm_page_lock_queues(); - vm_page_wire(p); p->valid = VM_PAGE_BITS_ALL; vm_page_flag_clear(p, PG_ZERO); vm_page_unlock_queues(); |