summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2017-09-30 18:07:46 +0000
committeralc <alc@FreeBSD.org>2017-09-30 18:07:46 +0000
commitb9579f89ca206abc61984bcf722bb891863150de (patch)
tree678a32b3dced2d39eedbade07b820954b68ef472
parentbcb7bdeda3fdfe663b240900af7215d27fa3a4b8 (diff)
downloadFreeBSD-src-b9579f89ca206abc61984bcf722bb891863150de.zip
FreeBSD-src-b9579f89ca206abc61984bcf722bb891863150de.tar.gz
MFC r323785
Sync with amd64/arm/arm64/i386/mips pmap change r288256: Exploit r288122 to address a cosmetic issue. Since PV chunk pages don't belong to a vm object, they can't be paged out. Since they can't be paged out, they are never enqueued in a paging queue. Nonetheless, passing PQ_INACTIVE to vm_page_unwire() creates the appearance that these pages are being enqueued in the inactive queue. As of r288122, we can avoid this false impression by passing PQ_NONE.
-rw-r--r--sys/riscv/riscv/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/riscv/riscv/pmap.c b/sys/riscv/riscv/pmap.c
index a6c899b..5b897dd 100644
--- a/sys/riscv/riscv/pmap.c
+++ b/sys/riscv/riscv/pmap.c
@@ -1589,7 +1589,7 @@ free_pv_chunk(struct pv_chunk *pc)
#if 0 /* TODO: For minidump */
dump_drop_page(m->phys_addr);
#endif
- vm_page_unwire(m, PQ_INACTIVE);
+ vm_page_unwire(m, PQ_NONE);
vm_page_free(m);
}
OpenPOWER on IntegriCloud