diff options
author | Roman Gushchin <guro@fb.com> | 2020-08-06 23:21:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-07 11:33:25 -0700 |
commit | 272911a4ad18c48f8bc449a5db945a54987dd687 (patch) | |
tree | ff000a4a362687f849c8ee584c817c26bf950796 /mm/slub.c | |
parent | d797b7d05405c519f7b62ea69a75cea1883863b2 (diff) | |
download | linux-272911a4ad18c48f8bc449a5db945a54987dd687.tar.gz linux-272911a4ad18c48f8bc449a5db945a54987dd687.tar.bz2 linux-272911a4ad18c48f8bc449a5db945a54987dd687.zip |
mm: memcg/slab: remove memcg_kmem_get_cache()
The memcg_kmem_get_cache() function became really trivial, so let's just
inline it into the single call point: memcg_slab_pre_alloc_hook().
It will make the code less bulky and can also help the compiler to
generate a better code.
Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/20200623174037.3951353-15-guro@fb.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions