memcg: don't check mm in __memcg_kmem_{get_cache,newpage_charge}
authorVladimir Davydov <vdavydov@parallels.com>
Sat, 13 Dec 2014 00:54:53 +0000 (16:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 13 Dec 2014 20:42:46 +0000 (12:42 -0800)
commit9d100c5e470eaeee5809da289f22b0de165de6b2
tree1ae444940e47ef41586c1370aff451224117cfa5
parentbfda7e8fe428ff4a42653d7b117d4598fc446cda
memcg: don't check mm in __memcg_kmem_{get_cache,newpage_charge}

We already assured the current task has mm in memcg_kmem_should_charge,
no need to double check.

Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: 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