]> xenbits.xensource.com Git - freebsd.git/commitdiff
Fix a couple of nits in r352110.
authormarkj <markj@FreeBSD.org>
Mon, 16 Sep 2019 15:06:19 +0000 (15:06 +0000)
committermarkj <markj@FreeBSD.org>
Mon, 16 Sep 2019 15:06:19 +0000 (15:06 +0000)
- Remove a dead variable from the amd64 pmap_extract_and_hold().
- Fix grammar in the vm_page_wire man page.

Reported by: alc
Reviewed by: alc, kib
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21639

share/man/man9/vm_page_wire.9
sys/amd64/amd64/pmap.c

index e3f03ab6b1f8c4596e3955731afdafe6aa0776bd..940cf9f6ceec810155ccb1a94e8e69e1701fd129 100644 (file)
@@ -51,7 +51,7 @@ The
 .Fn vm_page_wire
 and
 .Fn vm_page_wire_mapped
-function wire the page, prevent it from being reclaimed by the page
+functions wire the page, which prevents it from being reclaimed by the page
 daemon or when its containing object is destroyed.
 Both functions require that the page belong to an object.
 The
index f2ebee2ca55068ae5c4ec1d40f23db8a362440b1..0deeded676d3fe6dc3db8d55b0110239eef10841 100644 (file)
@@ -3064,10 +3064,8 @@ pmap_extract_and_hold(pmap_t pmap, vm_offset_t va, vm_prot_t prot)
 {
        pd_entry_t pde, *pdep;
        pt_entry_t pte, PG_RW, PG_V;
-       vm_paddr_t pa;
        vm_page_t m;
 
-       pa = 0;
        m = NULL;
        PG_RW = pmap_rw_bit(pmap);
        PG_V = pmap_valid_bit(pmap);