Date: Fri, 27 Dec 2019 23:19:21 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r356139 - head/sys/vm Message-ID: <201912272319.xBRNJLVb038190@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Fri Dec 27 23:19:21 2019 New Revision: 356139 URL: https://svnweb.freebsd.org/changeset/base/356139 Log: Remove some stale comments from the page allocator. Since r352110 the page lock is not required to wire pages in any context. Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Fri Dec 27 21:44:13 2019 (r356138) +++ head/sys/vm/vm_page.c Fri Dec 27 23:19:21 2019 (r356139) @@ -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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912272319.xBRNJLVb038190>