]> git.baikalelectronics.ru Git - kernel.git/commit
block: add bio_for_each_bvec_all()
authorOmar Sandoval <osandov@fb.com>
Thu, 16 Apr 2020 21:46:11 +0000 (14:46 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:24 +0000 (11:25 +0200)
commit71fab92fa2d7656342b489bcd2a8976193a1b53b
tree45deabef6738854caebcdada4773a68c3bae35b6
parentd2189e33e9bb7a4f2db99b60af2219c2e785436f
block: add bio_for_each_bvec_all()

An upcoming Btrfs fix needs to know the original size of a non-cloned
bios. Rather than accessing the bvec table directly, let's add a
bio_for_each_bvec_all() accessor.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
.clang-format
Documentation/block/biovecs.rst
include/linux/bio.h