[lkml]   [2008]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC/PATCH 1/3] SLAB: Add PageSlab checking to ksize()
    Hi Matt,

    On Thu, May 22, 2008 at 6:01 PM, Matt Mackall <> wrote:
    > As I've said several times, ksize() on kmem_cache_alloced objects
    > -cannot work- on SLOB. Calling ksize() on something returned by
    > kmem_cache_alloc is a categorical error.

    Well, it's a historical fact that ksize() worked for both kmalloc()
    and kmem_cache_alloc() (see the kernedoc comment in mm/slab.c).
    However, I think we should just look at getting rid of ksize()
    altogether as it's only (ab)used by the nommu code and few call-sites
    that open-code krealloc().


     \ /
      Last update: 2008-05-22 18:17    [W:0.019 / U:11.664 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site