summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorChristoph Hellwig2016-11-01 14:40:06 +0100
committerJens Axboe2016-11-01 16:43:26 +0100
commit67f055c798c72c49ee0c844eae0cd6e9c83b1b16 (patch)
tree20786d4de35a1832debc631f0a6586e8c38ce7eb /fs/btrfs/volumes.c
parentbcache: use op_is_sync to check for synchronous requests (diff)
downloadkernel-qcow2-linux-67f055c798c72c49ee0c844eae0cd6e9c83b1b16.tar.gz
kernel-qcow2-linux-67f055c798c72c49ee0c844eae0cd6e9c83b1b16.tar.xz
kernel-qcow2-linux-67f055c798c72c49ee0c844eae0cd6e9c83b1b16.zip
btrfs: use op_is_sync to check for synchronous requests
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 71a60cc01451..deda46cf1292 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -6100,7 +6100,7 @@ static noinline void btrfs_schedule_bio(struct btrfs_root *root,
bio->bi_next = NULL;
spin_lock(&device->io_lock);
- if (bio->bi_opf & REQ_SYNC)
+ if (op_is_sync(bio->bi_opf))
pending_bios = &device->pending_sync_bios;
else
pending_bios = &device->pending_bios;