memcg-cleanup-root-memcg-checks.patch removed from -mm tree
The patch titled
Subject: memcg: cleanup root memcg checks
has been removed from the -mm tree. Its filename was
memcg-cleanup-root-memcg-checks.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Shakeel Butt <[email protected]>
Subject: memcg: cleanup root memcg checks
Replace the implicit checking of root memcg with explicit root memcg checking i.e. !css->parent with mem_cgroup_is_root().
Signed-off-by Shakeel Butt <[email protected]>
Acked-by Michal Hocko <[email protected]>
Acked-by Johannes Weiner <[email protected]>
Cc Roman Gushchin <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/memcontrol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-cleanup-root-memcg-checks +2 -2
@@ -4123,7 +4123,7 @@ static int mem_cgroup_swappiness_write(sif (val >100 )return -EINVAL ; -if (css->parent) +if (!mem_cgroup_is_root (memcg)) memcg->swappiness = val;else vm_swappiness = val;
@@ -4473,7 +4473,7 @@ static int mem_cgroup_oom_control_write(struct mem_cgroup *memcg =mem_cgroup_from_css (css);/* cannot set to root cgroup and only 0 and 1 are allowed */ -if (!css->parent || !((val ==0 ) || (val ==1 ))) +if (mem_cgroup_is_root (memcg) || !((val ==0 ) || (val ==1 )))return -EINVAL ; memcg->oom_kill_disable = val;
_
Patches currently in -mm which might be from [email protected] are