Skip to content

Commit aa1e6a9

Browse files
Kuan-Ying Leeakpm00
authored andcommitted
mm/gup: add folio to list when folio_isolate_lru() succeed
If we call folio_isolate_lru() successfully, we will get return value 0. We need to add this folio to the movable_pages_list. Link: https://lkml.kernel.org/r/[email protected] Fixes: 67e139b ("mm/gup.c: refactor check_and_migrate_movable_pages()") Signed-off-by: Kuan-Ying Lee <[email protected]> Reviewed-by: Alistair Popple <[email protected]> Acked-by: David Hildenbrand <[email protected]> Reviewed-by: Baolin Wang <[email protected]> Cc: Andrew Yang <[email protected]> Cc: Chinwen Chang <[email protected]> Cc: John Hubbard <[email protected]> Cc: Matthias Brugger <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 81e9d6f commit aa1e6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/gup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ static unsigned long collect_longterm_unpinnable_pages(
19141914
drain_allow = false;
19151915
}
19161916

1917-
if (!folio_isolate_lru(folio))
1917+
if (folio_isolate_lru(folio))
19181918
continue;
19191919

19201920
list_add_tail(&folio->lru, movable_page_list);

0 commit comments

Comments
 (0)