From: Shaun Tancheff Date: Sat, 30 Jul 2016 21:45:48 +0000 (-0500) Subject: Fixup direct bi_rw modifiers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b571bc606e714e448b00920987d77b384a6a9570;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Fixup direct bi_rw modifiers bi_rw should be using bio_set_op_attrs to set bi_rw. Signed-off-by: Shaun Tancheff Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Cc: Mike Christie Reviewed-by: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 5850d79806f4..881eb4667051 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)) {