]> git.baikalelectronics.ru Git - kernel.git/commit
block: introduce bio_clone_bioset_partial()
authorMing Lei <tom.leiming@gmail.com>
Tue, 14 Feb 2017 15:28:59 +0000 (23:28 +0800)
committerShaohua Li <shli@fb.com>
Wed, 15 Feb 2017 19:22:05 +0000 (11:22 -0800)
commit3b83dc51000322701061ba73c47f66aa4d52cced
treeb6db3c3286d3086c587a76da819c9272dc91b19d
parent6865d37426332484650e6e93e74e4b5f49fab506
block: introduce bio_clone_bioset_partial()

md still need bio clone(not the fast version) for behind write,
and it is more efficient to use bio_clone_bioset_partial().

The idea is simple and just copy the bvecs range specified from
parameters.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Shaohua Li <shli@fb.com>
block/bio.c
include/linux/bio.h