[Devel] Re: [PATCH] cgroup: Avoid a memset by using vzalloc

Jesper Juhl jj at chaosbits.net
Sun Oct 31 22:53:43 PDT 2010


On Sun, 31 Oct 2010, Balbir Singh wrote:

> * MinChan Kim <minchan.kim at gmail.com> [2010-10-31 08:34:01]:
> 
> > On Sun, Oct 31, 2010 at 6:35 AM, Jesper Juhl <jj at chaosbits.net> wrote:
> > > Hi,
> > >
> > > We can avoid doing a memset in swap_cgroup_swapon() by using vzalloc().
> > >
> > >
> > > Signed-off-by: Jesper Juhl <jj at chaosbits.net>
> > Reviewed-by: Minchan Kim <minchan.kim at gmail.com>
> > 
> > There are so many placed need vzalloc.
> > Thanks, Jesper.
> 
> Yes, please check memcontrol.c as well
> 
I will shortly, I'm slowly working my way through a mountain of code 
checking for this. I'll get to memcontrol.c

> 
> Acked-by: Balbir Singh <balbir at linux.vnet.ibm.com>
>  
Thanks.

-- 
Jesper Juhl <jj at chaosbits.net>             http://www.chaosbits.net/
Plain text mails only, please      http://www.expita.com/nomime.html
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list