mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 05:43:59 +00:00
vm_page: Move a comment
fb38b29b56
(page_alloc_br) vm_page: Remove extra test, dup code from page alloc
should have moved a comment block when it moved the function call that followed it.
Move the comment block now.
This commit is contained in:
parent
6e9119768d
commit
4bae154fe8
|
@ -2185,6 +2185,10 @@ vm_page_find_contig_domain(int domain, int req, u_long npages, vm_paddr_t low,
|
|||
struct vm_domain *vmd;
|
||||
vm_page_t m_ret;
|
||||
|
||||
/*
|
||||
* Can we allocate the pages without the number of free pages falling
|
||||
* below the lower bound for the allocation class?
|
||||
*/
|
||||
vmd = VM_DOMAIN(domain);
|
||||
if (!vm_domain_allocate(vmd, req, npages))
|
||||
return (NULL);
|
||||
|
@ -2238,11 +2242,6 @@ vm_page_alloc_contig_domain(vm_object_t object, vm_pindex_t pindex, int domain,
|
|||
mpred = vm_radix_lookup_le(&object->rtree, pindex);
|
||||
KASSERT(mpred == NULL || mpred->pindex != pindex,
|
||||
("vm_page_alloc_contig: pindex already allocated"));
|
||||
|
||||
/*
|
||||
* Can we allocate the pages without the number of free pages falling
|
||||
* below the lower bound for the allocation class?
|
||||
*/
|
||||
for (;;) {
|
||||
#if VM_NRESERVLEVEL > 0
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue