Re: [PATCH] Do not pass the SLAB flags as GFP in slob kmem_cache_create

Cyrill Gorcunov
2008-12-10T20:27:47Z

[Christoph Lameter - Wed, Dec 10, 2008 at 02:11:23PM -0600]
| On Wed, 10 Dec 2008, Cyrill Gorcunov wrote:
|
| > this would make the following line in slob_alloc
| >
| > ...
| > if (unlikely((gfp & __GFP_ZERO) && b))
| > memset(b, 0, size);
| > ...
| >
| > useless. Not sure if it will be good :)
|
| No. GFP_ZERO is set when kmalloc etc is called. Its not set on
| kmem_cache_create.
|

yep, Matt already pointed, I just missed first time.

- Cyrill -