mm/slab.c: do not hash pointers when debugging slab
[linux-2.6-microblaze.git] / mm / kmemleak.c
index 3d47817..d73c142 100644 (file)
@@ -1523,7 +1523,7 @@ static void kmemleak_scan(void)
                        if (page_count(page) == 0)
                                continue;
                        scan_block(page, page + 1, NULL);
-                       if (!(pfn % (MAX_SCAN_SIZE / sizeof(*page))))
+                       if (!(pfn & 63))
                                cond_resched();
                }
        }