mm/swap: fix for "mm: workingset: age nonresident information alongside anonymous pages"
Non-file-lru page could also be activated in mark_page_accessed() and we need to count this activation for nonresident_age. Note that it's better for this patch to be squashed into the patch "mm: workingset: age nonresident information alongside anonymous pages". Link: http://lkml.kernel.org/r/1592288204-27734-3-git-send-email-iamjoonsoo.kim@lge.com Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Joonsoo Kim <js1304@gmail.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Minchan Kim <minchan.kim@gmail.com> Cc: Rik van Riel <riel@surriel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
31d8fcac00
commit
cb6868832e
@ -443,7 +443,6 @@ void mark_page_accessed(struct page *page)
|
|||||||
else
|
else
|
||||||
__lru_cache_activate_page(page);
|
__lru_cache_activate_page(page);
|
||||||
ClearPageReferenced(page);
|
ClearPageReferenced(page);
|
||||||
if (page_is_file_lru(page))
|
|
||||||
workingset_activation(page);
|
workingset_activation(page);
|
||||||
}
|
}
|
||||||
if (page_is_idle(page))
|
if (page_is_idle(page))
|
||||||
|
Loading…
Reference in New Issue
Block a user