Skip to content

Commit ca39c5e

Browse files
MiaoheLinakpm00
authored andcommitted
mm/memcg: update obsolete comment above parent_mem_cgroup()
Since commit bef8620 ("mm: memcg: deprecate the non-hierarchical mode"), use_hierarchy is already deprecated. And it's further removed via commit 9d9d341 ("cgroup: remove obsoleted broken_hierarchy and warned_broken_hierarchy"). Update corresponding comment. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Roman Gushchin <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Shakeel Butt <[email protected]> Cc: Muchun Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 6a718bd commit ca39c5e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/linux/memcontrol.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,7 @@ static inline struct mem_cgroup *lruvec_memcg(struct lruvec *lruvec)
860860
* parent_mem_cgroup - find the accounting parent of a memcg
861861
* @memcg: memcg whose parent to find
862862
*
863-
* Returns the parent memcg, or NULL if this is the root or the memory
864-
* controller is in legacy no-hierarchy mode.
863+
* Returns the parent memcg, or NULL if this is the root.
865864
*/
866865
static inline struct mem_cgroup *parent_mem_cgroup(struct mem_cgroup *memcg)
867866
{

0 commit comments

Comments
 (0)