Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934851Ab2JXN70 (ORCPT ); Wed, 24 Oct 2012 09:59:26 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:25143 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934675Ab2JXN7Z (ORCPT ); Wed, 24 Oct 2012 09:59:25 -0400 From: Glauber Costa To: Cc: Subject: [PATCH v2 0/2] common entry point for kmem_cache_free Date: Wed, 24 Oct 2012 17:59:16 +0400 Message-Id: <1351087158-8524-1-git-send-email-glommer@parallels.com> X-Mailer: git-send-email 1.7.11.7 CC: Joonsoo Kim CC: David Rientjes CC: Pekka Enberg CC: Christoph Lameter Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1385 Lines: 36 The goal of this patchset is to provide a single entry point for kmem_cache_free. Other functions, such as the allocation itself, and kmalloc could easily follow. The main problem here, is that if we keep the allocator-specific functions in their .c file, we lose the ability to inline their fast paths. Being this such a critical path, we would like to keep doing so. During the last discussion around this (https://lkml.org/lkml/2012/10/22/639), JoonSoo Kim suggested that we could achieve this by just including the allocator-specific .c files in slab_common.c, a suggestion I considered but quickly disregarding fearing a quite ugly end result. Turns out it doesn't look so bad. So please let me know what you think. Thanks Glauber Costa (2): kmem_cache: include allocators code directly into slab_common slab: move kmem_cache_free to common code mm/Makefile | 3 --- mm/slab.c | 23 ++--------------------- mm/slab_common.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ mm/slob.c | 11 ++++------- mm/slub.c | 5 +---- 5 files changed, 57 insertions(+), 35 deletions(-) -- 1.7.11.7 -- 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/