[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120121000842.GB2908@dhcp-172-17-108-109.mtv.corp.google.com>
Date: Fri, 20 Jan 2012 16:08:42 -0800
From: Tejun Heo <tj@...nel.org>
To: Mandeep Singh Baines <msb@...omium.org>
Cc: Li Zefan <lizf@...fujitsu.com>,
Frederic Weisbecker <fweisbec@...il.com>,
linux-kernel@...r.kernel.org,
containers@...ts.linux-foundation.org, cgroups@...r.kernel.org,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
Oleg Nesterov <oleg@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Paul Menage <paul@...lmenage.org>
Subject: Re: [PATCH 3/3] cgroup: remove extra calls to find_existing_css_set
On Tue, Jan 03, 2012 at 09:18:32PM -0800, Mandeep Singh Baines wrote:
> +out_put_css_set_refs:
> + if (retval) {
> + for (i = 0; i < css_set_refs; i++) {
> + tc = flex_array_get(group, i);
> + put_css_set(tc->cg);
Why not the following
for (i = 0; i < group_size; i++) {
tc = flex_array_get(group, i);
if (tc)
put_css_set(tc->cg);
}
and remove css_set_refs?
Thanks
--
tejun
--
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