memcg: don't check mm in __memcg_kmem_{get_cache,newpage_charge}
authorVladimir Davydov <[email protected]>
Sat, 13 Dec 2014 00:54:53 +0000 (16:54 -0800)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c