From: Christoph Lameter Date: Tue, 17 Jul 2007 11:03:22 +0000 (-0700) Subject: Slab allocators: consistent ZERO_SIZE_PTR support and NULL result semantics X-Git-Tag: v2.6.23-rc1~747 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cb8f91320d3e720351c21741da795fed580b21b;p=pandora-kernel.git Slab allocators: consistent ZERO_SIZE_PTR support and NULL result semantics Define ZERO_OR_NULL_PTR macro to be able to remove the checks from the allocators. Move ZERO_SIZE_PTR related stuff into slab.h. Make ZERO_SIZE_PTR work for all slab allocators and get rid of the WARN_ON_ONCE(size == 0) that is still remaining in SLAB. Make slub return NULL like the other allocators if a too large memory segment is requested via __kmalloc. Signed-off-by: Christoph Lameter Acked-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed