On Fri, Jan 11, 2013 at 12:54:32PM -0800, Zach Brown wrote: > > But after flipping slab code, I find that another callback will disable > > merging slabs when allocating a slab, so I'm not sure if it worth doing > > so... > > Do you mean the find_mergeable() stuff in SLUB?
Yes, that's what I'm worried about. > > > What do you think about it? > > I don't know, pass in a callback to destruction? > > void kmem_cache_destroy_inuse_cb(struct kmem_cache *s, > void (*objcb)(void *)); > > I'd try to spend as little time on this as possible. Get the most basic > thing working to demonstrate the idea and send it to lkml to get > feedback. > > - z Okay, I'll send a RFC, and thanks for the suggestion :) thanks, liubo -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html