projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df08c32
)
Fixup direct bi_rw modifiers
author
Shaun Tancheff
<
[email protected]
>
Sat, 30 Jul 2016 21:45:48 +0000
(16:45 -0500)
committer
Jens Axboe
<
[email protected]
>
Thu, 4 Aug 2016 20:19:16 +0000
(14:19 -0600)
bi_rw should be using bio_set_op_attrs to set bi_rw.
Signed-off-by: Shaun Tancheff <
[email protected]
>
Cc: Chris Mason <
[email protected]
>
Cc: Josef Bacik <
[email protected]
>
Cc: David Sterba <
[email protected]
>
Cc: Mike Christie <
[email protected]
>
Reviewed-by: Christoph Hellwig <
[email protected]
>
Signed-off-by: Jens Axboe <
[email protected]
>
fs/btrfs/extent_io.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/extent_io.c
b/fs/btrfs/extent_io.c
index 5850d79806f42cf100e91e8d3c02d3ca551d1839..881eb4667051cde17faf621907d5f28a397e7006 100644
(file)
--- 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)) {