Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761754AbXFSSgA (ORCPT ); Tue, 19 Jun 2007 14:36:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761368AbXFSSfx (ORCPT ); Tue, 19 Jun 2007 14:35:53 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:55368 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756545AbXFSSfx (ORCPT ); Tue, 19 Jun 2007 14:35:53 -0400 Date: Tue, 19 Jun 2007 11:35:01 -0700 From: Andrew Morton To: Cedric Le Goater , Christoph Lameter Cc: Linux Kernel Mailing List , Herbert Poetzl , Pavel Emelianov Subject: Re: [PATCH -mm] add a kmem_cache for nsproxy objects Message-Id: <20070619113501.a88bba50.akpm@linux-foundation.org> In-Reply-To: <4676F0B9.3080408@fr.ibm.com> References: <4676F0B9.3080408@fr.ibm.com> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.6; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 706 Lines: 20 On Mon, 18 Jun 2007 22:53:13 +0200 Cedric Le Goater wrote: > +static int __init nsproxy_cache_init(void) > +{ > + nsproxy_cachep = kmem_cache_create("nsproxy", sizeof(struct nsproxy), > + 0, SLAB_PANIC, NULL, NULL); > + return 0; > +} > + Christoph added this cheesy KMEM_CACHE macro. But I don't immediately recall the rationale so I'm a bit reluctant to ask people to use-the-cheesy-macro. Perhaps he can remind us why it is there? - 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/