Btrfs: check-integrity use bvec_iter
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 14 Apr 2017 23:11:52 +0000 (16:11 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:25:59 +0000 (18:25 +0200)
commit11b5616516171851b7fcbddc2366aeeef3fa1e53
tree928d6cbc30cc984906ac68467061085d5f2f48e8
parent629ebf4fadbc647e2118ef9c94b038eeef178e9c
Btrfs: check-integrity use bvec_iter

Some check-integrity code depends on bio->bi_vcnt, this changes it to use
bio segments because some bios passing here may not have a reliable
bi_vcnt.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/check-integrity.c