]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: don't access the bio directly in btrfs_csum_one_bio
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Nov 2016 08:07:49 +0000 (09:07 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 Nov 2016 12:45:20 +0000 (13:45 +0100)
commit2fb3706aa5bc0a7cc4b897d234dddaf1b04f59ce
treed49921d165793b5cf6982ce8d0354cf5d2e6ff59
parent698ba04b36bac8bd2785cdb4617d6fa0b2447ad9
btrfs: don't access the bio directly in btrfs_csum_one_bio

Use bio_for_each_segment_all to iterate over the segments instead.
This requires a bit of reshuffling so that we only lookup up the ordered
item once inside the bio_for_each_segment_all loop.

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