diff options
author | Shakeel Butt <shakeelb@google.com> | 2019-03-05 15:43:13 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-05 21:07:15 -0800 |
commit | 60cd4bcd62384cfa1e5890cebacccf08b3161156 (patch) | |
tree | 98f36784147eccafe2f042a415ee756ad7f8d07b /drivers/watchdog/alim1535_wdt.c | |
parent | 9234bae9b252bbc231abcabfa644a4eb9724250c (diff) | |
download | linux-stable-60cd4bcd62384cfa1e5890cebacccf08b3161156.tar.gz linux-stable-60cd4bcd62384cfa1e5890cebacccf08b3161156.tar.bz2 linux-stable-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 'drivers/watchdog/alim1535_wdt.c')
0 files changed, 0 insertions, 0 deletions