From: Christoph Lameter Subject: Re: [PATCH 1/4] mm: Move ARCH_SLAB_MINALIGN and ARCH_KMALLOC_MINALIGN to Date: Wed, 19 May 2010 14:45:01 -0500 (CDT) Message-ID: References: <1274266725.6930.9823.camel@macbook.infradead.org> <1274266902.6930.9834.camel@macbook.infradead.org> <4BF437EA.9010904@cs.helsinki.fi> <4BF43AB0.2010606@cs.helsinki.fi> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: David Woodhouse , Herbert Xu , manfred@colorfullife.com, David Miller , mpm@selenic.com, ken@codelabs.ch, geert@linux-m68k.org, michael-dev@fami-braun.de, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, anemo@mba.ocn.ne.jp To: Pekka Enberg Return-path: Received: from nlpi157.sbcis.sbc.com ([207.115.36.171]:34759 "EHLO nlpi157.prodigy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752549Ab0ESTtK (ORCPT ); Wed, 19 May 2010 15:49:10 -0400 In-Reply-To: <4BF43AB0.2010606@cs.helsinki.fi> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Wed, 19 May 2010, Pekka Enberg wrote: > Christoph Lameter wrote: > > Maybe we can consolidate that into slab.h so that the alignment is the > > same for all allocators? > > But we don't want that for SLOB as discussed in the other thread. It really > wants to be sizeof(unsigned long), not sizeof(unsigned long long). __alignof__(unsigned long long) SLOB needs to respect that as well otherwise objects are not aligned as required by the compiler.