bcache: use op_is_sync to check for synchronous requests
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Nov 2016 13:40:05 +0000 (07:40 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 1 Nov 2016 15:43:26 +0000 (09:43 -0600)
commit83b5df67c50995ed93b2b7adac3f002ad8bb6069
tree1a4d54bf32b13f1235e45117e45299e6e8380a83
parent03ea4afa67566a3c4e83c0fde8bf0c48f16ac1a3
bcache: use op_is_sync to check for synchronous requests

(and remove one layer of masking for the op_is_write call next to it).

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/md/bcache/request.c
drivers/md/bcache/writeback.h