From f7baca8ee5700ea5b317b57f911a117c2f716bce Mon Sep 17 00:00:00 2001 From: Vinayak Menon Date: Tue, 31 Dec 2019 14:57:11 +0530 Subject: [PATCH] mm: process_reclaim: consider compound pages Avoid passing tail pages to isolate_lru_page. In the case process reclaim, since only lru pages are considered, this is just to avoid a warning from isolate_lru_page. Change-Id: I1f54dcec15f8c2d5ba16738657e79d2793d36c77 Signed-off-by: Vinayak Menon --- fs/proc/task_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 7a4397ce4559..32573b365d5d 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -1736,7 +1736,7 @@ cont: if (!page) continue; - if (isolate_lru_page(page)) + if (isolate_lru_page(compound_head(page))) continue; list_add(&page->lru, &page_list);