Skip to content

Commit ae02620

Browse files
kiryltorvalds
authored andcommitted
thp: make deferred_split_scan() work again
We need to iterate over split_queue, not local empty list to get anything split from the shrinker. Fixes: e3ae195 ("thp: limit number of object to scan on deferred_split_scan()") Signed-off-by: Kirill A. Shutemov <[email protected]> Cc: Andrea Arcangeli <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 12352d3 commit ae02620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/huge_memory.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3482,7 +3482,7 @@ static unsigned long deferred_split_scan(struct shrinker *shrink,
34823482

34833483
spin_lock_irqsave(&pgdata->split_queue_lock, flags);
34843484
/* Take pin on all head pages to avoid freeing them under us */
3485-
list_for_each_safe(pos, next, &list) {
3485+
list_for_each_safe(pos, next, &pgdata->split_queue) {
34863486
page = list_entry((void *)pos, struct page, mapping);
34873487
page = compound_head(page);
34883488
if (get_page_unless_zero(page)) {

0 commit comments

Comments
 (0)