]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita980ab072f72ac0eefb64a17acc73efcc795997c
tree522e668859003d0e95f9cd3ff68171021d8e04c1
parentdc89e40515c539a7d61996f03607f31e46242f5d
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