]> 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)
commit8bb59e25888e17f3d79f8cdc3c575ee6f8729103
tree45deabef6738854caebcdada4773a68c3bae35b6
parent98802cd16ece929c51535a9bf45e1342b32a6f18
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