]> git.baikalelectronics.ru Git - kernel.git/commit
mm: kmem: remove redundant checks from get_obj_cgroup_from_current()
authorRoman Gushchin <guro@fb.com>
Sat, 17 Oct 2020 23:13:47 +0000 (16:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 18 Oct 2020 16:27:09 +0000 (09:27 -0700)
commita1b2808cac80651475ab3b98022d30e34d87dea4
tree0e0e0c32038e33a27215a2590c6cf9b07c8913eb
parentd4ade1284b6ed65378496bc4eb2c15e7d871da96
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>
mm/memcontrol.c