diff options
author | alc <alc@FreeBSD.org> | 2011-10-27 16:39:17 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2011-10-27 16:39:17 +0000 |
commit | 841afea2d9f7c1247e3fb6f7ea594619c4a067c0 (patch) | |
tree | df4b3a31e6e696440d5b0fb21f80d8a64699e648 /sys/kern/vfs_bio.c | |
parent | 315841e3acfb0734bb338e0d4b4e13c891f900e8 (diff) | |
download | FreeBSD-src-841afea2d9f7c1247e3fb6f7ea594619c4a067c0.zip FreeBSD-src-841afea2d9f7c1247e3fb6f7ea594619c4a067c0.tar.gz |
Eliminate vestiges of page coloring in VM_ALLOC_NOOBJ calls to
vm_page_alloc(). While I'm here, for the sake of consistency, always
specify the allocation class, such as VM_ALLOC_NORMAL, as the first of
the flags.
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 7b5b015..d3384ef 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3760,10 +3760,9 @@ tryagain: * could interfere with paging I/O, no matter which * process we are. */ - p = vm_page_alloc(NULL, pg >> PAGE_SHIFT, VM_ALLOC_NOOBJ | - VM_ALLOC_SYSTEM | VM_ALLOC_WIRED | - VM_ALLOC_COUNT((to - pg) >> PAGE_SHIFT)); - if (!p) { + p = vm_page_alloc(NULL, 0, VM_ALLOC_SYSTEM | VM_ALLOC_NOOBJ | + VM_ALLOC_WIRED | VM_ALLOC_COUNT((to - pg) >> PAGE_SHIFT)); + if (p == NULL) { VM_WAIT; goto tryagain; } |