]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcg: push !mm handling out to page cache charge function
authorJohannes Weiner <hannes@cmpxchg.org>
Mon, 7 Apr 2014 22:37:41 +0000 (15:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:35:56 +0000 (16:35 -0700)
commit69f72ee1c16f6c6ab4b4358fab638fc27a80ddbf
tree37aeaa6682139d81c14095740d7e6204e6f60b2a
parent3993b178397459e026bddff8c4b5fdd29b92c513
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>
mm/memcontrol.c