Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754646Ab2JWOMS (ORCPT ); Tue, 23 Oct 2012 10:12:18 -0400 Received: from a193-30.smtp-out.amazonses.com ([199.255.193.30]:10013 "EHLO a193-30.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751789Ab2JWOMR (ORCPT ); Tue, 23 Oct 2012 10:12:17 -0400 Date: Tue, 23 Oct 2012 14:12:16 +0000 From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Glauber Costa cc: JoonSoo Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Pekka Enberg , David Rientjes Subject: Re: [PATCH 2/2] slab: move kmem_cache_free to common code In-Reply-To: <50865024.60309@parallels.com> Message-ID: <0000013a8df775ea-2411bbc8-8025-4514-8b58-ef007d11beef-000000@email.amazonses.com> References: <1350914737-4097-1-git-send-email-glommer@parallels.com> <1350914737-4097-3-git-send-email-glommer@parallels.com> <0000013a88eff593-50da3bb8-3294-41db-9c32-4e890ef6940a-000000@email.amazonses.com> <508561E0.5000406@parallels.com> <50865024.60309@parallels.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SES-Outgoing: 199.255.193.30 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 759 Lines: 18 On Tue, 23 Oct 2012, Glauber Costa wrote: > I do agree, but since freeing is ultimately dependent on the allocator > layout, I don't see a clean way of doing this without dropping tears of > sorrow around. The calls in slub/slab/slob would have to be somehow > inlined. Hum... maybe it is possible to do it from > include/linux/sl*b_def.h... > > Let me give it a try and see what I can come up with. The best solution would be something that would have a consolidated kmem_cache_free() in include/linux/slab.h. -- 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/