diff options
author | Roman Gushchin <guro@fb.com> | 2020-10-18 01:13:47 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-10-18 18:27:09 +0200 |
commit | 67f0286498d7486a9c35f081df1dffe2ffcd02b9 (patch) | |
tree | 0e0e0c32038e33a27215a2590c6cf9b07c8913eb /mm/init-mm.c | |
parent | mm: kmem: move memcg_kmem_bypass() calls to get_mem/obj_cgroup_from_current() (diff) | |
download | linux-67f0286498d7486a9c35f081df1dffe2ffcd02b9.tar.xz linux-67f0286498d7486a9c35f081df1dffe2ffcd02b9.zip |
mm: kmem: remove redundant checks from get_obj_cgroup_from_current()
There are checks for current->mm and current->active_memcg in
get_obj_cgroup_from_current(), but these checks are redundant:
memcg_kmem_bypass() called just above performs same checks.
Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Link: http://lkml.kernel.org/r/20200827225843.1270629-3-guro@fb.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/init-mm.c')
0 files changed, 0 insertions, 0 deletions