summaryrefslogtreecommitdiff
path: root/Documentation/block
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2020-04-17 00:46:11 +0300
committerDavid Sterba <dsterba@suse.com>2020-05-25 12:25:24 +0300
commit1072c12d7d58b5512b6c05c2268f57d32f1ab76c (patch)
tree45deabef6738854caebcdada4773a68c3bae35b6 /Documentation/block
parent534cf531ccf6331b6e63a054f2ceb8e1ccff1ec9 (diff)
downloadlinux-1072c12d7d58b5512b6c05c2268f57d32f1ab76c.tar.xz
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>
Diffstat (limited to 'Documentation/block')
-rw-r--r--Documentation/block/biovecs.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/block/biovecs.rst b/Documentation/block/biovecs.rst
index ad303a2569d3..36771a131b56 100644
--- a/Documentation/block/biovecs.rst
+++ b/Documentation/block/biovecs.rst
@@ -129,6 +129,7 @@ Usage of helpers:
::
bio_for_each_segment_all()
+ bio_for_each_bvec_all()
bio_first_bvec_all()
bio_first_page_all()
bio_last_bvec_all()
@@ -143,4 +144,5 @@ Usage of helpers:
bio_vec' will contain a multi-page IO vector during the iteration::
bio_for_each_bvec()
+ bio_for_each_bvec_all()
rq_for_each_bvec()