diff options
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index be953afe804c..23e7d36ff325 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -260,7 +260,7 @@ loop_lock: | |||
260 | num_run++; | 260 | num_run++; |
261 | batch_run++; | 261 | batch_run++; |
262 | 262 | ||
263 | if (bio_sync(cur)) | 263 | if (bio_rw_flagged(cur, BIO_RW_SYNCIO)) |
264 | num_sync_run++; | 264 | num_sync_run++; |
265 | 265 | ||
266 | if (need_resched()) { | 266 | if (need_resched()) { |
@@ -2942,7 +2942,7 @@ static noinline int schedule_bio(struct btrfs_root *root, | |||
2942 | bio->bi_rw |= rw; | 2942 | bio->bi_rw |= rw; |
2943 | 2943 | ||
2944 | spin_lock(&device->io_lock); | 2944 | spin_lock(&device->io_lock); |
2945 | if (bio_sync(bio)) | 2945 | if (bio_rw_flagged(bio, BIO_RW_SYNCIO)) |
2946 | pending_bios = &device->pending_sync_bios; | 2946 | pending_bios = &device->pending_sync_bios; |
2947 | else | 2947 | else |
2948 | pending_bios = &device->pending_bios; | 2948 | pending_bios = &device->pending_bios; |