Messages in this thread | | | Date | Wed, 13 Sep 2006 14:39:17 -0500 | From | Matt Mackall <> | Subject | Re: kernel BUGs when removing largish files with the SLOB allocator |
| |
Another issue that occurred to me last night is that the size of objects allocated with SLOB's slab-like API are implicit and not calculable from the object. kmalloc'ed objects, in contrast, have a header that contains the object size.
So ksize(kmalloc(...)) works, but not ksize(kmem_cache_alloc(...)). I don't know if anything in the kernel is using the latter aside from kobjsize.
-- Mathematics is the supreme nostalgia of our time. - 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/
| |