From: Hugh Dickins add_to_page_cache_lru puts PageSwapBacked pages on the active_anon lru, so shouldn't mem_cgroup_charge_common mirror that by setting FLAG_ACTIVE? Signed-off-by: Hugh Dickins Reviewed-by: KOSAKI Motohiro Cc: Rik van Riel Cc: Lee Schermerhorn Cc: KAMEZAWA Hiroyuki Cc: Balbir Singh Signed-off-by: Andrew Morton --- mm/memcontrol.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN mm/memcontrol.c~vmscan-split-lru-lists-into-anon-file-sets-splitlru-memcg-swapbacked-pages-active mm/memcontrol.c --- a/mm/memcontrol.c~vmscan-split-lru-lists-into-anon-file-sets-splitlru-memcg-swapbacked-pages-active +++ a/mm/memcontrol.c @@ -560,6 +560,8 @@ static int mem_cgroup_charge_common(stru pc->flags = PAGE_CGROUP_FLAG_CACHE; if (page_is_file_cache(page)) pc->flags |= PAGE_CGROUP_FLAG_FILE; + else + pc->flags |= PAGE_CGROUP_FLAG_ACTIVE; } else pc->flags = PAGE_CGROUP_FLAG_ACTIVE; _