From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 20 May 2008 17:38:20 +0800 From: Herbert Xu Subject: Re: [PATCH 1/4] block: use ARCH_KMALLOC_MINALIGN as the default dma pad mask Message-ID: <20080520093819.GA9147@gondor.apana.org.au> References: <1211259514-9131-1-git-send-email-fujita.tomonori@lab.ntt.co.jp> <1211259514-9131-2-git-send-email-fujita.tomonori@lab.ntt.co.jp> <20080520023129.2f921f24.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080520023129.2f921f24.akpm@linux-foundation.org> Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: FUJITA Tomonori , linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, jens.axboe@oracle.com, tsbogend@alpha.franken.de, bzolnier@gmail.com, James.Bottomley@HansenPartnership.com, jeff@garzik.org, davem@davemloft.net, linux-mm@kvack.org List-ID: On Tue, May 20, 2008 at 02:31:29AM -0700, Andrew Morton wrote: > > So here you're using it for "dma aligment" whereas crypto is using it > (or ARCH_SLAB_MINALIGN!) for "cpu 64-bit alignment". No the 64-bit alignment is just an example. The purpose of CRYPTO_MINALIGN is pretty much the same as ARCH_KMALLOC_MINALIGN, i.e., the minimum alignment guaranteed by kmalloc. The only reason it exists is because ARCH_KMALLOC_MINALIGN isn't defined on all platforms. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- 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