Skip to content

Commit b571bc6

Browse files
stancheffaxboe
authored andcommitted
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>
1 parent df08c32 commit b571bc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/extent_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2049,7 +2049,7 @@ int repair_io_failure(struct inode *inode, u64 start, u64 length, u64 logical,
20492049
return -EIO;
20502050
}
20512051
bio->bi_bdev = dev->bdev;
2052-
bio->bi_rw = WRITE_SYNC;
2052+
bio_set_op_attrs(bio, REQ_OP_WRITE, WRITE_SYNC);
20532053
bio_add_page(bio, page, length, pg_offset);
20542054

20552055
if (btrfsic_submit_bio_wait(bio)) {

0 commit comments

Comments
 (0)