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

From: Balbir Singh
Date: Sun Oct 31 2010 - 13:33:48 EST


* MinChan Kim <minchan.kim@xxxxxxxxx> [2010-10-31 08:34:01]:

> On Sun, Oct 31, 2010 at 6:35 AM, Jesper Juhl <jj@xxxxxxxxxxxxx> wrote:
> > Hi,
> >
> > We can avoid doing a memset in swap_cgroup_swapon() by using vzalloc().
> >
> >
> > Signed-off-by: Jesper Juhl <jj@xxxxxxxxxxxxx>
> Reviewed-by: Minchan Kim <minchan.kim@xxxxxxxxx>
>
> There are so many placed need vzalloc.
> Thanks, Jesper.

Yes, please check memcontrol.c as well


Acked-by: Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx>


--
Three Cheers,
Balbir
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/