diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2014-12-11 00:43:54 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-11 02:41:07 +0100 |
commit | 7bdd143c37e591c254d0991ac398a53f3f9ef1af (patch) | |
tree | 0198540d14c53ee642729dcdf57f0faf94e8b2e2 /virt/kvm/Kconfig | |
parent | mm: memcontrol: micro-optimize mem_cgroup_split_huge_fixup() (diff) | |
download | linux-7bdd143c37e591c254d0991ac398a53f3f9ef1af.tar.xz linux-7bdd143c37e591c254d0991ac398a53f3f9ef1af.zip |
mm: memcontrol: uncharge pages on swapout
This series gets rid of the remaining page_cgroup flags, thus cutting the
memcg per-page overhead down to one pointer.
This patch (of 4):
mem_cgroup_swapout() is called with exclusive access to the page at the
end of the page's lifetime. Instead of clearing the PCG_MEMSW flag and
deferring the uncharge, just do it right away. This allows follow-up
patches to simplify the uncharge code.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Hugh Dickins <hughd@google.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Vladimir Davydov <vdavydov@parallels.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'virt/kvm/Kconfig')
0 files changed, 0 insertions, 0 deletions