Commit 74a1c48f authored by KOSAKI Motohiro's avatar KOSAKI Motohiro Committed by Linus Torvalds
Browse files

vmscan: kill unnecessary page flag test

The page_lru() already evaluate PageActive() and PageSwapBacked().  We
don't need to re-evaluate it.
Signed-off-by: default avatarKOSAKI Motohiro <>
Reviewed-by: default avatarJohannes Weiner <>
Cc: Rik van Riel <>
Cc: Minchan Kim <>
Cc: Mel Gorman <>
Cc: Wu Fengguang <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 5205e56e
......@@ -1208,8 +1208,8 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
lru = page_lru(page);
add_page_to_lru_list(zone, page, lru);
if (PageActive(page)) {
int file = !!page_is_file_cache(page);
if (is_active_lru(lru)) {
int file = !!is_file_lru(lru);
if (!pagevec_add(&pvec, page)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment