All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm/gup: Add folio to list when folio_isolate_lru() succeed
@ 2023-01-31  6:32 ` Kuan-Ying Lee
  0 siblings, 0 replies; 12+ messages in thread
From: Kuan-Ying Lee @ 2023-01-31  6:32 UTC (permalink / raw)
  To: Andrew Morton, Matthias Brugger, Alistair Popple, John Hubbard
  Cc: chinwen.chang, andrew.yang, Kuan-Ying Lee, linux-mm,
	linux-kernel, linux-arm-kernel, linux-mediatek

If we call folio_isolate_lru() successfully, we will get
return value 0. We need to add this folio to the
movable_pages_list.

Fixes: 67e139b02d99 ("mm/gup.c: refactor check_and_migrate_movable_pages()")
Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
---
 mm/gup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/gup.c b/mm/gup.c
index f3d2cccb89f8..918c364d01ac 100644
--- a/mm/gup.c
+++ b/mm/gup.c
@@ -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);
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-02-02  8:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-31  6:32 [PATCH] mm/gup: Add folio to list when folio_isolate_lru() succeed Kuan-Ying Lee
2023-01-31  6:32 ` Kuan-Ying Lee
2023-01-31 23:17 ` Andrew Morton
2023-01-31 23:17   ` Andrew Morton
2023-02-02  2:13   ` Kuan-Ying Lee (李冠穎)
2023-02-02  2:13     ` Kuan-Ying Lee (李冠穎)
2023-02-02  6:09   ` Alistair Popple
2023-02-02  6:09     ` Alistair Popple
2023-02-01  9:08 ` Baolin Wang
2023-02-01  9:08   ` Baolin Wang
2023-02-02  8:39 ` David Hildenbrand
2023-02-02  8:39   ` David Hildenbrand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.