diff options
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/btrfs/volumes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 4053fc44d2cf..9df8e3f1ccab 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
| @@ -256,13 +256,13 @@ loop_lock: | |||
| 256 | wake_up(&fs_info->async_submit_wait); | 256 | wake_up(&fs_info->async_submit_wait); |
| 257 | 257 | ||
| 258 | BUG_ON(atomic_read(&cur->bi_cnt) == 0); | 258 | BUG_ON(atomic_read(&cur->bi_cnt) == 0); |
| 259 | submit_bio(cur->bi_rw, cur); | ||
| 260 | num_run++; | ||
| 261 | batch_run++; | ||
| 262 | 259 | ||
| 263 | if (bio_rw_flagged(cur, BIO_RW_SYNCIO)) | 260 | if (bio_rw_flagged(cur, BIO_RW_SYNCIO)) |
| 264 | num_sync_run++; | 261 | num_sync_run++; |
| 265 | 262 | ||
| 263 | submit_bio(cur->bi_rw, cur); | ||
| 264 | num_run++; | ||
| 265 | batch_run++; | ||
| 266 | if (need_resched()) { | 266 | if (need_resched()) { |
| 267 | if (num_sync_run) { | 267 | if (num_sync_run) { |
| 268 | blk_run_backing_dev(bdi, NULL); | 268 | blk_run_backing_dev(bdi, NULL); |
