Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265195AbUIIOsn (ORCPT ); Thu, 9 Sep 2004 10:48:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265161AbUIIOsn (ORCPT ); Thu, 9 Sep 2004 10:48:43 -0400 Received: from ns.virtualhost.dk ([195.184.98.160]:17883 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id S265044AbUIIOsj (ORCPT ); Thu, 9 Sep 2004 10:48:39 -0400 Date: Thu, 9 Sep 2004 16:47:05 +0200 From: Jens Axboe To: Bartlomiej Zolnierkiewicz Cc: Jeff Garzik , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [patch][3/9] ide: add ide_sg_init() helper Message-ID: <20040909144705.GD1737@suse.de> References: <200409082126.49832.bzolnier@elka.pw.edu.pl> <413FCB61.7060604@pobox.com> <200409091554.41718.bzolnier@elka.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409091554.41718.bzolnier@elka.pw.edu.pl> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 811 Lines: 29 On Thu, Sep 09 2004, Bartlomiej Zolnierkiewicz wrote: > > On Thursday 09 September 2004 05:17, Jeff Garzik wrote: > > Bartlomiej Zolnierkiewicz wrote: > > > +static inline void ide_sg_init(struct scatterlist *sg, u8 *buf, unsigned int buflen) > > > +{ > > > + memset(sg, 0, sizeof(*sg)); > > > + > > > + sg->page = virt_to_page(buf); > > > + sg->offset = offset_in_page(buf); > > > + sg->length = buflen; > > > +} > > > + > > > > > > Surely this should be more generic? > > Any idea where to put it? linux/blkdev.h? How about asm/scatterlist.h? -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/