diff options
author | Muchun Song <songmuchun@bytedance.com> | 2021-11-05 13:37:53 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-11-06 13:30:35 -0700 |
commit | 642688681133a501d149349ba1a824204f3540e1 (patch) | |
tree | 76e6ddbc4d7bc20f84c0c26679208694963ed858 /fs/btrfs/reflink.h | |
parent | 41d17431df4aa7c57761e04f81c94fb3c3beedf4 (diff) | |
download | lwn-642688681133a501d149349ba1a824204f3540e1.tar.gz lwn-642688681133a501d149349ba1a824204f3540e1.zip |
mm: memcontrol: remove kmemcg_id reparenting
Since slab objects and kmem pages are charged to object cgroup instead
of memory cgroup, memcg_reparent_objcgs() will reparent this cgroup and
all its descendants to its parent cgroup. This already makes further
list_lru_add()'s add elements to the parent's list. So it is
unnecessary to change kmemcg_id of an offline cgroup to its parent's id.
It just wastes CPU cycles. Just remove the redundant code.
Link: https://lkml.kernel.org/r/20211025125102.56533-1-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Acked-by: Roman Gushchin <guro@fb.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/btrfs/reflink.h')
0 files changed, 0 insertions, 0 deletions