aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2015-09-26 07:18:05 +0000
committerAlan Cox <alc@FreeBSD.org>2015-09-26 07:18:05 +0000
commit9f86aba61c668b9e74be932b11bf094ca5563e9d (patch)
treee06c87a7b94a1a95cc57bfd99b2a6e2af5e95d7b /sys/arm64
parent436ed6b50dba29dd8171f69610fc888807bb2f16 (diff)
downloadsrc-9f86aba61c668b9e74be932b11bf094ca5563e9d.tar.gz
src-9f86aba61c668b9e74be932b11bf094ca5563e9d.zip
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. Submitted by: kmacy (an earlier version) Differential Revision: https://reviews.freebsd.org/D1674
Notes
Notes: svn path=/head/; revision=288256
Diffstat (limited to 'sys/arm64')
-rw-r--r--sys/arm64/arm64/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
index 62fe394bd393..b558149b6917 100644
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -1517,7 +1517,7 @@ free_pv_chunk(struct pv_chunk *pc)
/* entire chunk is free, return it */
m = PHYS_TO_VM_PAGE(DMAP_TO_PHYS((vm_offset_t)pc));
dump_drop_page(m->phys_addr);
- vm_page_unwire(m, PQ_INACTIVE);
+ vm_page_unwire(m, PQ_NONE);
vm_page_free(m);
}