lkml.org 
[lkml]   [2009]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/7] memcg : use CSS ID in memcg
> > +static s64 mem_cgroup_local_usage(struct mem_cgroup_stat *stat)
> > +{
> > + s64 ret;
> > +
> It would be better to initialize it to 0.
>
> > + ret = mem_cgroup_read_stat(stat, MEM_CGROUP_STAT_CACHE);
> > + ret += mem_cgroup_read_stat(stat, MEM_CGROUP_STAT_RSS);
> > + return ret;
> > +}
> > +
Ah, ret is initialized by mem_cgroup_read_stat...

please ignore the above comment.


Thanks,
Daisuke Nishimura.


\
 
 \ /
  Last update: 2009-01-23 09:15    [W:0.068 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site