From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756631AbXEIKUo (ORCPT ); Wed, 9 May 2007 06:20:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754718AbXEIKUh (ORCPT ); Wed, 9 May 2007 06:20:37 -0400 Received: from smtp1.linux-foundation.org ([65.172.181.25]:57682 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754694AbXEIKUg (ORCPT ); Wed, 9 May 2007 06:20:36 -0400 Date: Wed, 9 May 2007 03:19:15 -0700 From: Andrew Morton To: Herbert Xu Cc: jens.axboe@oracle.com (Jens Axboe), linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/10] i386 sg: add support for chaining scatterlists Message-Id: <20070509031915.6e934f35.akpm@linux-foundation.org> In-Reply-To: References: <11786975641488-git-send-email-jens.axboe@oracle.com> X-Mailer: Sylpheed 2.4.1 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 09 May 2007 20:03:29 +1000 Herbert Xu wrote: > Jens Axboe wrote: > > > > diff --git a/include/asm-i386/scatterlist.h b/include/asm-i386/scatterlist.h > > index d7e45a8..794b68c 100644 > > --- a/include/asm-i386/scatterlist.h > > +++ b/include/asm-i386/scatterlist.h > > @@ -8,8 +8,11 @@ struct scatterlist { > > unsigned int offset; > > dma_addr_t dma_address; > > unsigned int length; > > + struct scatterlist *next; > > }; > > BTW, the crypto layer's scatterlist already has a chaining mechanism > using the existing structure. The only difference is that the chained > pointer is stored inside the 'struct page *' rather than a new pointer. Which field in the page is it using?