Re: [PATCH] some kmalloc/memset ->kzalloc (tree wide)

From: Christoph Lameter
Date: Fri Jul 06 2007 - 13:54:39 EST


On Fri, 6 Jul 2007, Peter Zijlstra wrote:

> On Fri, 2007-07-06 at 18:51 +0200, Yoann Padioleau wrote:
> > Transform some calls to kmalloc/memset to a single kzalloc (or
> > kcalloc).
> >
>
> Christoph, what is the plan wrt GFP_ZERO?

Its going in AFAIK. Need to resort my patches and then I will push it
back.

kzalloc will continue to exist as a shorthand notation. So no problem with
continuing the conversion. kmalloc with GFP_ZERO may be more advantageous
in allocator type functionality where the caller may want to specify if
the allocated memory should be zeroed or not.

-
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/