Page MenuHomeFreeBSD
Paste P174

(An Untitled Masterwork)
ActivePublic

Authored by markj on Apr 17 2018, 5:59 PM.
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 945ff80afbe6..30a69d6a34cb 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -4140,6 +4140,8 @@ vm_page_ps_test(vm_page_t m, int flags, vm_page_t skip_m)
int i, npages;
object = m->object;
+ if (skip_m != NULL && skip_m->object != object)
+ return (false);
VM_OBJECT_ASSERT_LOCKED(object);
npages = atop(pagesizes[m->psind]);

Event Timeline

markj created this paste.Apr 17 2018, 5:59 PM
markj created this object in space S1 Global.