Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108389324
D28005.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
776 B
Referenced Files
None
Subscribers
None
D28005.diff
View Options
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -5259,7 +5259,7 @@
pc->pc_map[0] = PC_FREE0 & ~1ul; /* preallocated bit 0 */
pc->pc_map[1] = PC_FREE1;
pc->pc_map[2] = PC_FREE2;
- pvc = &pv_chunks[vm_phys_domain(m->phys_addr)];
+ pvc = &pv_chunks[vm_page_domain(m)];
mtx_lock(&pvc->pvc_lock);
TAILQ_INSERT_TAIL(&pvc->pvc_list, pc, pc_lru);
mtx_unlock(&pvc->pvc_lock);
@@ -5360,7 +5360,7 @@
pc->pc_map[1] = PC_FREE1;
pc->pc_map[2] = PC_FREE2;
TAILQ_INSERT_HEAD(&pmap->pm_pvchunk, pc, pc_list);
- TAILQ_INSERT_TAIL(&new_tail[pc_to_domain(pc)], pc, pc_lru);
+ TAILQ_INSERT_TAIL(&new_tail[vm_page_domain(m)], pc, pc_lru);
PV_STAT(atomic_add_int(&pv_entry_spare, _NPCPV));
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 9:46 AM (16 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16136166
Default Alt Text
D28005.diff (776 B)
Attached To
Mode
D28005: Prefer the use of vm_page_domain() to vm_phys_domain()
Attached
Detach File
Event Timeline
Log In to Comment