block: add helpers for setting/checking stream validity
authorJens Axboe <axboe@kernel.dk>
Wed, 14 Jun 2017 18:56:01 +0000 (12:56 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 14 Jun 2017 18:56:01 +0000 (12:56 -0600)
commite6eb0e74d0e273e819f752e693ea86d367a416f8
tree245bffbb79a1e0824be4073b9c5ee754a57d1362
parent820d7731599f733bab70e7acabfdc48b6cd3c0ee
block: add helpers for setting/checking stream validity

We map the RWF_WRITE_* life time flags 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