summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.cz>2012-10-26 13:37:28 +0200
committerTejun Heo <tj@kernel.org>2012-10-29 16:22:21 -0700
commitc26251f9f06d27d1941229d237aca44a0e7b4e42 (patch)
tree6460f272a925acccb381aa4f939b6ce169e46f9c /virt
parenta0d271cbfed1dd50278c6b06bead3d00ba0a88f9 (diff)
memcg: split mem_cgroup_force_empty into reclaiming and reparenting parts
mem_cgroup_force_empty did two separate things depending on free_all parameter from the very beginning. It either reclaimed as many pages as possible and moved the rest to the parent or just moved charges to the parent. The first variant is used as memory.force_empty callback while the later is used from the mem_cgroup_pre_destroy. The whole games around gotos are far from being nice and there is no reason to keep those two functions inside one. Let's split them and also move the responsibility for css reference counting to their callers to make to code easier. This patch doesn't have any functional changes. Signed-off-by: Michal Hocko <mhocko@suse.cz> Reviewed-by: Tejun Heo <tj@kernel.org> Reviewed-by: Glauber Costa <glommer@parallels.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions