(2012/05/15 3:32), Tejun Heo wrote: > On Mon, May 14, 2012 at 11:15:56AM -0700, Tejun Heo wrote: >> On Fri, May 11, 2012 at 06:45:18PM +0900, KAMEZAWA Hiroyuki wrote: >>> - if (cgroup_task_count(cgroup) || !list_empty(&cgroup->children)) >>> + if (cgroup_task_count(cgroup) >>> + || !list_empty(&cgroup->children)) { >>> + ret = -EBUSY; >>> goto out; >> >> Why break the line? It doesn't go over 80 col. > > Ooh, it does. Sorry, my bad. But still, isn't it more usual to leave > the operator in the preceding line and align the start of the second > line with the first? ie. > > if (cgroup_task_count(cgroup) || > !list_empty(&cgroup->children)) { > How about this ? == From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Date: Fri, 27 Apr 2012 13:19:19 +0900 Subject: [PATCH] memcg: fix error code in hugetlb_force_memcg_empty() Changelog: - clean up. Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx> Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> --- mm/hugetlb.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 1d3c8ea9..82ec623 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1922,8 +1922,11 @@ int hugetlb_force_memcg_empty(struct cgroup *cgroup) int ret = 0, idx = 0; do { - if (cgroup_task_count(cgroup) || !list_empty(&cgroup->children)) + if (cgroup_task_count(cgroup) || + !list_empty(&cgroup->children)){ + ret = -EBUSY; goto out; + } /* * If the task doing the cgroup_rmdir got a signal * we don't really need to loop till the hugetlb resource -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html