btrfs: refactor __btrfs_lookup_bio_sums to use bio_for_each_segment_all
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Nov 2016 08:07:52 +0000 (09:07 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 Nov 2016 12:45:20 +0000 (13:45 +0100)
commit4989d277eb4b36cc1aacf72725b53977c6b5260d
tree522e668859003d0e95f9cd3ff68171021d8e04c1
parent2a4d0c9068a6cbd94086953e45625505891490b2
btrfs: refactor __btrfs_lookup_bio_sums to use bio_for_each_segment_all

Rework the loop a little bit to use the generic bio_for_each_segment_all
helper for iterating over the bio.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file-item.c