Re: [patch 04/26] Slab allocators: Support __GFP_ZERO in all allocators.
From: Pekka Enberg <hidden>
Date: 2007-06-18 20:12:16
Also in:
lkml
From: Pekka Enberg <hidden>
Date: 2007-06-18 20:12:16
Also in:
lkml
On 6/18/07, clameter@sgi.com [off-list ref] wrote:
A kernel convention for many allocators is that if __GFP_ZERO is passed to an allocator then the allocated memory should be zeroed. This is currently not supported by the slab allocators. The inconsistency makes it difficult to implement in derived allocators such as in the uncached allocator and the pool allocators.
[snip]
So add the necessary logic to all slab allocators to support __GFP_ZERO.
Looks good to me. Acked-by: Pekka Enberg <redacted> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>