lkml.org 
[lkml]   [2012]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2012-01-21 01:11    [W:0.067 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site