]> 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)
commit3b83aa63689b9f8f97b03fd1e64ab1329a75a5a1
tree522e668859003d0e95f9cd3ff68171021d8e04c1
parent83507f0cc52f463a7404bd040a6f0ac454e22129
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