From: Johannes Weiner Date: Wed, 10 Dec 2014 23:43:57 +0000 (-0800) Subject: mm: memcontrol: remove unnecessary PCG_MEMSW memory+swap charge flag X-Git-Tag: omap-for-v3.20/drop-legacy-3517~139^2~131 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18eca2e636f921e6350dc31b5b450bb4102d664f;p=pandora-kernel.git mm: memcontrol: remove unnecessary PCG_MEMSW memory+swap charge flag Now that mem_cgroup_swapout() fully uncharges the page, every page that is still in use when reaching mem_cgroup_uncharge() is known to carry both the memory and the memory+swap charge. Simplify the uncharge path and remove the PCG_MEMSW page flag accordingly. Signed-off-by: Johannes Weiner Cc: Hugh Dickins Acked-by: Michal Hocko Reviewed-by: Vladimir Davydov Acked-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed