You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since no-hierarchy mode is deprecated after
commit bef8620 ("mm: memcg: deprecate the non-hierarchical mode")
so parent_mem_cgroup() cannot return a NULL except root memcg, however, root
memcg cannot be offline, so it is safe to drop the check of returned value
of parent_mem_cgroup(). Remove those dead code.
The comments in memcg_offline_kmem() above memcg_reparent_list_lrus() are
out of date since
commit 5abc1e3 ("mm: list_lru: allocate list_lru_one only when needed")
There is no ordering requirement between memcg_reparent_list_lrus() and
memcg_reparent_objcgs(), so remove those outdated comments.
Signed-off-by: Muchun Song <[email protected]>
Acked-by: Roman Gushchin <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Orabug: 37405594
Conflicts:
i. mm/vmscan.c
(Due to 'commit 96f7b2b mm: vmscan: move shrinker-related code into a
separate file', which moved shrinker related functions away from vmscan.c)
ii. include/linux/memcontrol.h
(Due to 'commit ca39c5e mm/memcg: update obsolete comment above
parent_mem_cgroup()' - which fixed the comments above parent_mem_cgroup())
Signed-off-by: Imran Khan <[email protected]>
Reviewed-by: Kamalesh Babulal <[email protected]>
0 commit comments