lkml.org 
[lkml]   [2007]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 03/26] Slab allocators: Consistent ZERO_SIZE_PTR support and NULL result semantics
    On 6/18/07, clameter@sgi.com <clameter@sgi.com> wrote:
    > 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.

    Looks good to me.

    Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-06-18 22:11    [W:4.143 / U:0.192 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site