summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-verity.c
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2012-09-05 00:23:14 +0200
committerKent Overstreet <koverstreet@google.com>2013-03-23 22:15:31 +0100
commit4f2ac93c175c4922bdddbfec6cad94b32cea0070 (patch)
treece9df811f8a59c3af8486ee20fdc9d36fe5bfd25 /drivers/md/dm-verity.c
parentblock: Change bio_split() to respect the current value of bi_idx (diff)
downloadlinux-4f2ac93c175c4922bdddbfec6cad94b32cea0070.tar.xz
linux-4f2ac93c175c4922bdddbfec6cad94b32cea0070.zip
block: Remove bi_idx references
For immutable bvecs, all bi_idx usage needs to be audited - so here we're removing all the unnecessary uses. Most of these are places where it was being initialized on a bio that was just allocated, a few others are conversions to standard macros. Signed-off-by: Kent Overstreet <koverstreet@google.com> CC: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-verity.c')
-rw-r--r--drivers/md/dm-verity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-verity.c b/drivers/md/dm-verity.c
index 923115d08baa..4f06d9adf1ed 100644
--- a/drivers/md/dm-verity.c
+++ b/drivers/md/dm-verity.c
@@ -490,7 +490,7 @@ static int verity_map(struct dm_target *ti, struct bio *bio)
bio->bi_end_io = verity_end_io;
bio->bi_private = io;
- io->io_vec_size = bio->bi_vcnt - bio->bi_idx;
+ io->io_vec_size = bio_segments(bio);
if (io->io_vec_size < DM_VERITY_IO_VEC_INLINE)
io->io_vec = io->io_vec_inline;
else