Remove some stale comments from the page allocator.
Since r352110 the page lock is not required to wire pages in any context.
This commit is contained in:
parent
2178f45b86
commit
5541eb27d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356139
@ -2072,10 +2072,6 @@ vm_page_alloc_domain_after(vm_object_t object, vm_pindex_t pindex, int domain,
|
||||
if ((req & VM_ALLOC_SBUSY) != 0)
|
||||
m->busy_lock = VPB_SHARERS_WORD(1);
|
||||
if (req & VM_ALLOC_WIRED) {
|
||||
/*
|
||||
* The page lock is not required for wiring a page until that
|
||||
* page is inserted into the object.
|
||||
*/
|
||||
vm_wire_add(1);
|
||||
m->ref_count = 1;
|
||||
}
|
||||
@ -2404,10 +2400,6 @@ vm_page_alloc_freelist_domain(int domain, int freelist, int req)
|
||||
flags = PG_ZERO;
|
||||
m->flags &= flags;
|
||||
if ((req & VM_ALLOC_WIRED) != 0) {
|
||||
/*
|
||||
* The page lock is not required for wiring a page that does
|
||||
* not belong to an object.
|
||||
*/
|
||||
vm_wire_add(1);
|
||||
m->ref_count = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user