[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0706220920190.16635@schroedinger.engr.sgi.com>
Date: Fri, 22 Jun 2007 09:22:56 -0700 (PDT)
From: Christoph Lameter <clameter@....com>
To: Cedric Le Goater <clg@...ibm.com>
cc: Andrew Morton <akpm@...ux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Herbert Poetzl <herbert@...hfloor.at>,
Pavel Emelianov <xemul@...nvz.org>
Subject: Re: [PATCH -mm] add a kmem_cache for nsproxy objects
On Fri, 22 Jun 2007, Cedric Le Goater wrote:
> the macro sets the align parameter to "__alignof__(struct)" by default.
> is that something we want to do all the time ? if so, why not change
> kmem_cache_create() directly ?
Its a safety net. If there is some reason that the structure needs a
larger alignment than ARCH_KMALLOC_MINALIGN then that alignment will be
applied.
> Most of the complexity is in flags. I did a grep and picked what i thought
> was the most aggressive. The macro would probably be more useful if we could
> identify by it's name in which context it can be used.
What context are you thinking about and how would it influence
the macro?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists