[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1340366243-28104-1-git-send-email-liwp.linux@gmail.com>
Date: Fri, 22 Jun 2012 19:57:22 +0800
From: Wanpeng Li <liwp.linux@...il.com>
To: "linux-mm@...ck.org" <linux-mm@...ck.org>
Cc: <cgroups@...r.kernel.org>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
Michal Hocko <mhocko@...e.cz>,
Johannes Weiner <hannes@...xchg.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Han Ying <yinghan@...gle.com>,
Glauber Costa <glommer@...allels.com>,
Tejun Heo <tj@...nel.org>,
"Aneesh Kumar K.V" <aneesh.kumar@...ux.vnet.ibm.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Hiroyuki Kamezawa <kamezawa.hiroyuki@...il.com>,
Linux Kernel <linux-kernel@...r.kernel.org>,
Wanpeng Li <liwp.linux@...il.com>
Subject: [PATCH 1/2] memcg: use existing function to judge root mem cgroup
From: Wanpeng Li <liwp@...ux.vnet.ibm.com>
Signed-off-by: Wanpeng Li <liwp.linux@...il.com>
---
mm/memcontrol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index f72b5e5..776fc57 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4873,7 +4873,7 @@ mem_cgroup_create(struct cgroup *cont)
goto free_out;
/* root ? */
- if (cont->parent == NULL) {
+ if (!(mem_cgroup_is_root(cont))) {
int cpu;
enable_swap_cgroup();
parent = NULL;
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists