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 <vinmenon@codeaurora.org>
This commit is contained in:
Vinayak Menon 2019-12-31 14:57:11 +05:30 • committed by Gerrit - the friendly Code Review server
commit f7baca8ee5

View file

@ -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);