]> git.baikalelectronics.ru Git - kernel.git/commit
[SG] Get rid of __sg_mark_end()
authorJens Axboe <jens.axboe@oracle.com>
Wed, 31 Oct 2007 11:06:37 +0000 (12:06 +0100)
committerJens Axboe <axboe@carl.home.kernel.dk>
Fri, 2 Nov 2007 07:47:06 +0000 (08:47 +0100)
commite99f25e5351ffdc9d961f6ffa3ff4d2d97fd6617
tree4d7800effffe61bd3eaeae8f13e44466e4818b36
parent10c4adfe89b3d1eaabcd59ab4b9360e6a21d27d0
[SG] Get rid of __sg_mark_end()

sg_mark_end() overwrites the page_link information, but all users want
__sg_mark_end() behaviour where we just set the end bit. That is the most
natural way to use the sg list, since you'll fill it in and then mark the
end point.

So change sg_mark_end() to only set the termination bit. Add a sg_magic
debug check as well, and clear a chain pointer if it is set.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/ll_rw_blk.c
drivers/scsi/scsi_lib.c
include/linux/scatterlist.h
net/core/skbuff.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c
net/rxrpc/rxkad.c
net/sunrpc/auth_gss/gss_krb5_crypto.c