From 5541eb27d6bff23d907cdc5d3b2591c1c71c317a Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 27 Dec 2019 23:19:21 +0000 Subject: [PATCH] Remove some stale comments from the page allocator. Since r352110 the page lock is not required to wire pages in any context. --- sys/vm/vm_page.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index df68a0567ac1..9aa51082db04 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -2072,10 +2072,6 @@ found: 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 @@ again: 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; }