]> git.baikalelectronics.ru Git - kernel.git/commit
Add chained sg support to linux/scatterlist.h
authorJens Axboe <jens.axboe@oracle.com>
Mon, 16 Jul 2007 19:17:16 +0000 (21:17 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 16 Oct 2007 09:08:51 +0000 (11:08 +0200)
commit47f17014126f9af197805e5ab49f14e6ca4715ee
tree79d23b3ef2635032e6060dfa9b06e4f885a8cb10
parent3b463a13a31b9dbc4cfc4e635fd712d476b36808
Add chained sg support to linux/scatterlist.h

The core of the patch - allow the last sg element in a scatterlist
table to point to the start of a new table. We overload the LSB of
the page pointer to indicate whether this is a valid sg entry, or
merely a link to the next list.

Includes a fix from Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
correcting the ifdef ARCH_HAS_SG_CHAIN guarding sg_last().

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
include/linux/scatterlist.h