block: add support for write hints in a bio
authorJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2017 14:55:45 +0000 (08:55 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2017 15:31:37 +0000 (09:31 -0600)
commit2c5e34ad7267745bf6a9d87e654d1e364b24e4a0
tree59fd6436298f1f14341cd2fcd447a13446cb4b37
parent8687e286e58239b16324a0cc0a04425366436abb
block: add support for write hints in a bio

No functional changes in this patch, we just set aside 3 bits
in the bio/request flags, which can be used to hold a WRITE_LIFE_*
life time hint.

Ensure that we don't merge requests that have different life time
hints assigned to them.

Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c
fs/inode.c
include/linux/blk_types.h
include/linux/fs.h