diff mbox series

[3/4] mm: migrate: convert to folio_isolate_movable()

Message ID 20240826040132.1202297-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. 26, 2024, 4:01 a.m. UTC
Directly use folio_isolate_movable() helper in isolate_folio_to_list().

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

Patch

diff --git a/mm/migrate.c b/mm/migrate.c
index cc1c268c3822..3d8a97b74356 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -198,8 +198,8 @@  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) {
 			list_add(&folio->lru, list);