]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:59:54 +0000 (12:59 +0100)
commit7cf8c16056f149ff54dc910499fccf524bee99fb
treebe8b6e5997f22c4021b70b0cb2094def703d85bc
parent77028273ed1460094886373efa4de8c865b550cd
mm/gup: add folio to list when folio_isolate_lru() succeed

commit 643cf18a4ad126860d10e808ee5b52f785a27d61 upstream.

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: db72948aa8b7 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/gup.c