commit | 67f055c798c72c49ee0c844eae0cd6e9c83b1b16 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Nov 01 07:40:06 2016 -0600 |
committer | Jens Axboe <axboe@fb.com> | Tue Nov 01 09:43:26 2016 -0600 |
tree | 20786d4de35a1832debc631f0a6586e8c38ce7eb | |
parent | 83b5df67c50995ed93b2b7adac3f002ad8bb6069 [diff] [blame] |
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>
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 71a60cc..deda46cf 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c
@@ -6100,7 +6100,7 @@ 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;