block: add REQ_OP_FLAGS_ODIRECT
authorJens Axboe <axboe@kernel.dk>
Thu, 19 Oct 2017 17:33:29 +0000 (11:33 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 19 Oct 2017 17:33:29 +0000 (11:33 -0600)
commit9974ae56e3da12c27d5ff55c54962c98397017f5
treeeeaf658575d43ea91e504b539fd56c53a8574f3e
parent73d3393ada4f70fa3df5639c8d438f2f034c0ecb
block: add REQ_OP_FLAGS_ODIRECT

We have a couple of places where we check for REQ_SYNC | REQ_IDLE
as an indicator for an O_DIRECT write. Let's formally define
a REQ_OP_FLAGS_ODIRECT so that we ensure that the places setting
it and checking it are always in sync.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c
fs/block_dev.c
fs/direct-io.c
fs/iomap.c
include/linux/blk_types.h