aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'mm/kmemleak.c')
-rw-r--r--mm/kmemleak.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index ae113cf8f3b9..c98cf85c1086 100644
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -1441,6 +1441,8 @@ static void kmemleak_scan(void)
1441 if (page_count(page) == 0) 1441 if (page_count(page) == 0)
1442 continue; 1442 continue;
1443 scan_block(page, page + 1, NULL); 1443 scan_block(page, page + 1, NULL);
1444 if (!(pfn % (MAX_SCAN_SIZE / sizeof(*page))))
1445 cond_resched();
1444 } 1446 }
1445 } 1447 }
1446 put_online_mems(); 1448 put_online_mems();