diff options
author | Kuan-Ying Lee <[email protected]> | 2023-01-31 14:32:06 +0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-02-03 17:52:24 -0800 |
commit | aa1e6a932ca652a50a5df458399724a80459f521 (patch) | |
tree | a62918354961ce6202b3bd8e20daefeb2d489216 | |
parent | 81e9d6f8647650a7bead74c5f926e29970e834d1 (diff) |
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: 67e139b02d99 ("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]>
-rw-r--r-- | mm/gup.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1914,7 +1914,7 @@ static unsigned long collect_longterm_unpinnable_pages( drain_allow = false; } - if (!folio_isolate_lru(folio)) + if (folio_isolate_lru(folio)) continue; list_add_tail(&folio->lru, movable_page_list); |