]> git.baikalelectronics.ru Git - kernel.git/commit
block: provide a blk_rq_map_sg variant that returns the last element
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Apr 2020 07:42:22 +0000 (09:42 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Apr 2020 16:47:06 +0000 (10:47 -0600)
commitaf6091fe5352d5bf87bbb6802dbb58d90a626b92
tree2205ed1010c146887a329bdf953b74b04afedd87
parentacc60ce05bd92e8df517ecb26f66fdb3e38612b5
block: provide a blk_rq_map_sg variant that returns the last element

To be able to move some of the special purpose hacks in blk_rq_map_sg
into the callers we need a variant that returns the last mapped
S/G list element to the caller.  Add that variant as __blk_rq_map_sg
and make blk_rq_map_sg a trivial inline wrapper around it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c
include/linux/blkdev.h