Commit b571bc60 authored by Shaun Tancheff's avatar Shaun Tancheff Committed by Jens Axboe

Fixup direct bi_rw modifiers

bi_rw should be using bio_set_op_attrs to set bi_rw.
Signed-off-by: default avatarShaun Tancheff <>
Cc: Chris Mason <>
Cc: Josef Bacik <>
Cc: David Sterba <>
Cc: Mike Christie <>
Reviewed-by: default avatarChristoph Hellwig <>
Signed-off-by: default avatarJens Axboe <>
parent df08c32c
......@@ -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)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment