aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/memcontrol.h
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2014-04-07 15:37:41 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-07 16:35:56 -0700
commit284f39afeaa4ab1409b8f43b29cdea3007960ee3 (patch)
tree37aeaa6682139d81c14095740d7e6204e6f60b2a /include/linux/memcontrol.h
parentmm: memcg: inline mem_cgroup_charge_common() (diff)
downloadlinux-dev-284f39afeaa4ab1409b8f43b29cdea3007960ee3.tar.xz
linux-dev-284f39afeaa4ab1409b8f43b29cdea3007960ee3.zip
mm: memcg: push !mm handling out to page cache charge function
Only page cache charges can happen without an mm context, so push this special case out of the inner core and into the cache charge function. An ancient comment explains that the mm can also be NULL in case the task is currently being migrated, but that is not actually true with the current case, so just remove it. Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/memcontrol.h')
0 files changed, 0 insertions, 0 deletions