btrfs: don't access the bio directly in the direct I/O code
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Nov 2016 08:07:48 +0000 (09:07 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 Nov 2016 12:45:20 +0000 (13:45 +0100)
commit6a2de22f6babafd609b9356cdb0979eb5bb10564
tree7d41aaa2071455bd563a85d96dbd41dea2b46fa0
parent80ace3e40390ad0a85606b3a1450eb723070c9a9
btrfs: don't access the bio directly in the direct I/O code

Just use bio_for_each_segment_all to iterate over all segments.

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/inode.c