On Sun, Jun 01, 2003 at 12:58:09PM -0700, Andrew Morton wrote:
Well not really. Yes, a slab-based ctor would be nice, but it requires that
all objects be kfreed in a "constructed" state. So a full audit/fixup of
all users is needed.
For now I was thinking more along the lines of
struct vma_struct alloc_vma(gfp_flags)
{
vma = kmem_cache_alloc();
memset(vma);
return vma;
}
And then deleting tons of open-coded init stuff elsewhere...
I'll add vma ctor bits to my TODO list, behind numerous other things..
-- wli
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>