block: add helpers for setting/checking write hint validity
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Jun 2017 16:32:56 +0000 (10:32 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Jun 2017 16:32:56 +0000 (10:32 -0600)
commit867f6b1c44d684776a296e373846e2719a5ac95e
treedb077c68090dec22359f424362fd03345d3c4fed
parent1bdf52b7a2e549b1a651de9594eeb568cc0ce3fe
block: add helpers for setting/checking write hint validity

We map the WRITE_HINT_* life time hints to the internal flags.
Drivers can then, in turn, map those flags to a suitable stream
type.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/bio.h
include/linux/blk_types.h