From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx186.postini.com [74.125.245.186]) by kanga.kvack.org (Postfix) with SMTP id 44A3F6B0073 for ; Mon, 15 Oct 2012 20:47:44 -0400 (EDT) Received: by mail-pa0-f41.google.com with SMTP id fa10so6078192pad.14 for ; Mon, 15 Oct 2012 17:47:43 -0700 (PDT) Date: Mon, 15 Oct 2012 17:47:41 -0700 (PDT) From: David Rientjes Subject: Re: [PATCH v4] slab: Ignore internal flags in cache creation In-Reply-To: Message-ID: References: <1349434154-8000-1-git-send-email-glommer@parallels.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Glauber Costa Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , Pekka Enberg On Mon, 8 Oct 2012, David Rientjes wrote: > > diff --git a/mm/slab.h b/mm/slab.h > > index 7deeb44..4c35c17 100644 > > --- a/mm/slab.h > > +++ b/mm/slab.h > > @@ -45,6 +45,31 @@ static inline struct kmem_cache *__kmem_cache_alias(const char *name, size_t siz > > #endif > > > > > > +/* Legal flag mask for kmem_cache_create(), for various configurations */ > > +#define SLAB_CORE_FLAGS (SLAB_HWCACHE_ALIGN | SLAB_CACHE_DMA | SLAB_PANIC | \ > > + SLAB_DESTROY_BY_RCU | SLAB_DEBUG_OBJECTS ) > > + > > +#if defined(CONFIG_DEBUG_SLAB) > > +#define SLAB_DEBUG_FLAGS (SLAB_RED_ZONE | SLAB_POISON | SLAB_STORE_USER) > > +#elif defined(CONFIG_SLUB_DEBUG) > > +#define SLAB_DEBUG_FLAGS (SLAB_RED_ZONE | SLAB_POISON | SLAB_STORE_USER | \ > > + SLAB_TRACE | SLAB_DEBUG_FREE) > > +#else > > +#define SLAB_DEBUG_FLAGS (0) > > +#endif > > + > > +#if defined(CONFIG_SLAB) > > +#define SLAB_CACHE_FLAGS (SLAB_MEMSPREAD | SLAB_NOLEAKTRACE | \ > > s/SLAB_MEMSPREAD/SLAB_MEM_SPREAD/ > Did you have a v5 of this patch with the above fix? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org