diff options
| author | Christoph Lameter <[email protected]> | 2007-07-17 04:03:22 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-07-17 10:23:01 -0700 |
| commit | 6cb8f91320d3e720351c21741da795fed580b21b (patch) | |
| tree | c9f73c8b82cd0f6c534939b8b9f36e8615b0ab2d /include/linux/debugobjects.h | |
| parent | ef2ad80c7d255ed0449eda947c2d700635b7e0f5 (diff) | |
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 <[email protected]>
Acked-by: Pekka Enberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions