diff options
author | Shakeel Butt | 2019-03-06 00:43:13 +0100 |
---|---|---|
committer | Linus Torvalds | 2019-03-06 06:07:15 +0100 |
commit | 60cd4bcd62384cfa1e5890cebacccf08b3161156 (patch) | |
tree | 98f36784147eccafe2f042a415ee756ad7f8d07b /mm/vmalloc.c | |
parent | mm, slub: make the comment of put_cpu_partial() complete (diff) | |
download | kernel-qcow2-linux-60cd4bcd62384cfa1e5890cebacccf08b3161156.tar.gz kernel-qcow2-linux-60cd4bcd62384cfa1e5890cebacccf08b3161156.tar.xz kernel-qcow2-linux-60cd4bcd62384cfa1e5890cebacccf08b3161156.zip |
memcg: localize memcg_kmem_enabled() check
Move the memcg_kmem_enabled() checks into memcg kmem charge/uncharge
functions, so, the users don't have to explicitly check that condition.
This is purely code cleanup patch without any functional change. Only
the order of checks in memcg_charge_slab() can potentially be changed
but the functionally it will be same. This should not matter as
memcg_charge_slab() is not in the hot path.
Link: http://lkml.kernel.org/r/20190103161203.162375-1-shakeelb@google.com
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Roman Gushchin <guro@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions