summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorShaun Tancheff <shaun@tancheff.com>2016-07-30 16:45:48 -0500
committerJens Axboe <axboe@fb.com>2016-08-04 14:19:16 -0600
commitb571bc606e714e448b00920987d77b384a6a9570 (patch)
treef708b8535c2a9ec1b81024ba1e52fe0b3134b67d /fs/btrfs
parentdf08c32ce3be5be138c1dbfcba203314a3a7cd6f (diff)
downloadop-kernel-dev-b571bc606e714e448b00920987d77b384a6a9570.zip
op-kernel-dev-b571bc606e714e448b00920987d77b384a6a9570.tar.gz
Fixup direct bi_rw modifiers
bi_rw should be using bio_set_op_attrs to set bi_rw. Signed-off-by: Shaun Tancheff <shaun@tancheff.com> Cc: Chris Mason <clm@fb.com> Cc: Josef Bacik <jbacik@fb.com> Cc: David Sterba <dsterba@suse.com> Cc: Mike Christie <mchristi@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 5850d79..881eb46 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2049,7 +2049,7 @@ int repair_io_failure(struct inode *inode, u64 start, u64 length, u64 logical,
return -EIO;
}
bio->bi_bdev = dev->bdev;
- bio->bi_rw = WRITE_SYNC;
+ bio_set_op_attrs(bio, REQ_OP_WRITE, WRITE_SYNC);
bio_add_page(bio, page, length, pg_offset);
if (btrfsic_submit_bio_wait(bio)) {
OpenPOWER on IntegriCloud