mm: clear PG_active on MADV_PAGEOUT

shrink_page_list expects every pages as argument should be no active LRU
pages so we need to clear PG_active.

Fixes: 06a833a1167e ("mm: introduce MADV_PAGEOUT")
Signed-off-by: Minchan Kim <>
Acked-by: Michal Hocko <>
Cc: James E.J. Bottomley <>
Cc: Richard Henderson <>
Cc: Ralf Baechle <>
Cc: Chris Zankel <>
Cc: Daniel Colascione <>
Cc: Dave Hansen <>
Cc: Hillf Danton <>
Cc: Joel Fernandes (Google) <>
Cc: Johannes Weiner <>
Cc: Kirill A. Shutemov <>
Cc: Oleksandr Natalenko <>
Cc: Shakeel Butt <>
Cc: Sonny Rao <>
Cc: Suren Baghdasaryan <>
Cc: Tim Murray <>
Cc: Stephen Rothwell <>
Signed-off-by: Andrew Morton <>
1 file changed