]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm/gup: add folio to list when folio_isolate_lru() succeed
authorKuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Tue, 31 Jan 2023 06:32:06 +0000 (14:32 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 4 Feb 2023 01:52:24 +0000 (17:52 -0800)
commitaa1e6a932ca652a50a5df458399724a80459f521
treea62918354961ce6202b3bd8e20daefeb2d489216
parent81e9d6f8647650a7bead74c5f926e29970e834d1
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/20230131063206.28820-1-Kuan-Ying.Lee@mediatek.com
Fixes: 67e139b02d99 ("mm/gup.c: refactor check_and_migrate_movable_pages()")
Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Andrew Yang <andrew.yang@mediatek.com>
Cc: Chinwen Chang <chinwen.chang@mediatek.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/gup.c