diff options
author | Mike Christie <mchristi@redhat.com> | 2016-06-05 15:31:43 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-06-07 15:41:38 -0400 |
commit | 2a222ca992c35aee1e83af428f3dd26a3f5d5d94 (patch) | |
tree | a5ff0a4f59f8fc44a276dd054ea04314eec1a043 /fs/btrfs/disk-io.c | |
parent | f21508211d2b16e65821abd171378fa6ece126fe (diff) |
fs: have submit_bh users pass in op and flags separately
This has submit_bh users pass in the operation and flags separately,
so submit_bh_wbc can setup the bio op and bi_rw flags on the bio that
is submitted.
Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 3666558a2375..11033ce82f8a 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -3420,9 +3420,9 @@ static int write_dev_supers(struct btrfs_device *device, | |||
3420 | * to go down lazy. | 3420 | * to go down lazy. |
3421 | */ | 3421 | */ |
3422 | if (i == 0) | 3422 | if (i == 0) |
3423 | ret = btrfsic_submit_bh(WRITE_FUA, bh); | 3423 | ret = btrfsic_submit_bh(REQ_OP_WRITE, WRITE_FUA, bh); |
3424 | else | 3424 | else |
3425 | ret = btrfsic_submit_bh(WRITE_SYNC, bh); | 3425 | ret = btrfsic_submit_bh(REQ_OP_WRITE, WRITE_SYNC, bh); |
3426 | if (ret) | 3426 | if (ret) |
3427 | errors++; | 3427 | errors++; |
3428 | } | 3428 | } |