diff mbox series

[v2,3/5] mm: migrate: convert to folio_isolate_movable()

Message ID 20240829145456.2591719-4-wangkefeng.wang@huawei.com (mailing list archive)
State New
Headers show
Series mm: convert to folio_isolate_movable() | expand

Commit Message

Kefeng Wang Aug. 29, 2024, 2:54 p.m. UTC
Directly use folio_isolate_movable() in isolate_folio_to_list().

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 mm/migrate.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/mm/migrate.c b/mm/migrate.c
index 704102cc3951..4cac7f749620 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -196,8 +196,7 @@  bool isolate_folio_to_list(struct folio *folio, struct list_head *list)
 	if (lru)
 		isolated = folio_isolate_lru(folio);
 	else
-		isolated = isolate_movable_page(&folio->page,
-						ISOLATE_UNEVICTABLE);
+		isolated = folio_isolate_movable(folio, ISOLATE_UNEVICTABLE);
 
 	if (!isolated)
 		return false;