diff options
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 080e2ebb8aa0..f45b61fe9a9a 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -3516,7 +3516,7 @@ static blk_status_t wait_dev_flush(struct btrfs_device *device) | |||
3516 | struct bio *bio = device->flush_bio; | 3516 | struct bio *bio = device->flush_bio; |
3517 | 3517 | ||
3518 | if (!device->flush_bio_sent) | 3518 | if (!device->flush_bio_sent) |
3519 | return 0; | 3519 | return BLK_STS_OK; |
3520 | 3520 | ||
3521 | device->flush_bio_sent = 0; | 3521 | device->flush_bio_sent = 0; |
3522 | wait_for_completion_io(&device->flush_wait); | 3522 | wait_for_completion_io(&device->flush_wait); |
@@ -3563,7 +3563,7 @@ static int barrier_all_devices(struct btrfs_fs_info *info) | |||
3563 | continue; | 3563 | continue; |
3564 | 3564 | ||
3565 | write_dev_flush(dev); | 3565 | write_dev_flush(dev); |
3566 | dev->last_flush_error = 0; | 3566 | dev->last_flush_error = BLK_STS_OK; |
3567 | } | 3567 | } |
3568 | 3568 | ||
3569 | /* wait for all the barriers */ | 3569 | /* wait for all the barriers */ |