Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7baca8e authored by Vinayak Menon's avatar Vinayak Menon Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent bbc7f2d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1736,7 +1736,7 @@ static int reclaim_pte_range(pmd_t *pmd, unsigned long addr,
		if (!page)
			continue;

		if (isolate_lru_page(page))
		if (isolate_lru_page(compound_head(page)))
			continue;

		list_add(&page->lru, &page_list);