From: Pekka Enberg Subject: Re: [patch] slub: use size and objsize orders to disable debug flags Date: Tue, 28 Jul 2009 10:53:43 +0300 Message-ID: <4A6EAE87.9020006@cs.helsinki.fi> References: <4A6CF220.7080605@lwfinger.net> <84144f020907270008h2a985278of68e70ff1ee9265c@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: kernel-testers-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: David Rientjes Cc: Christoph Lameter , Larry Finger , "Rafael J. Wysocki" , Linux Kernel Mailing List , Kernel Testers List , Johannes Berg David Rientjes wrote: > This patch moves the masking of debugging flags which increase a cache's > min order due to metadata when `slub_debug=O' is used from > kmem_cache_flags() to kmem_cache_open(). > > Instead of defining the maximum metadata size increase in a preprocessor > macro, this approach uses the cache's ->size and ->objsize members to > determine if the min order increased due to debugging options. If so, > the flags specified in the more appropriately named DEBUG_METADATA_FLAGS > are masked off. > > This approach was suggested by Christoph Lameter > . > > Cc: Christoph Lameter > Signed-off-by: David Rientjes Applied, thanks!