All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Cc: Jeff Garzik <jgarzik@pobox.com>,
	linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [patch][3/9] ide: add ide_sg_init() helper
Date: Thu, 9 Sep 2004 17:38:03 +0200	[thread overview]
Message-ID: <20040909153803.GF1737@suse.de> (raw)
In-Reply-To: <200409091731.23439.bzolnier@elka.pw.edu.pl>

On Thu, Sep 09 2004, Bartlomiej Zolnierkiewicz wrote:
> On Thursday 09 September 2004 16:47, Jens Axboe wrote:
> > 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?
> 
> I would like to avoid duplicating it for every arch
> as it is not arch specific.

Maybe add linux/scatterlist.h then? It should not be in blkdev.h at
least, as it really has nothing to do with block devices.

-- 
Jens Axboe


      reply	other threads:[~2004-09-09 15:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-08 19:26 [patch][3/9] ide: add ide_sg_init() helper Bartlomiej Zolnierkiewicz
2004-09-09  3:17 ` Jeff Garzik
2004-09-09 13:54   ` Bartlomiej Zolnierkiewicz
2004-09-09 14:47     ` Jens Axboe
2004-09-09 15:31       ` Bartlomiej Zolnierkiewicz
2004-09-09 15:38         ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040909153803.GF1737@suse.de \
    --to=axboe@suse.de \
    --cc=bzolnier@elka.pw.edu.pl \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.