fs: add support for allowing applications to pass in write life time hints
authorJens Axboe <axboe@kernel.dk>
Tue, 13 Jun 2017 22:18:33 +0000 (16:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Jun 2017 22:18:33 +0000 (16:18 -0600)
commite4f146f6a81bf99be2ced506ab08917f238d7a13
tree9f605d712f1c58d9f240685567db810d796b3ffd
parent26e5343d3cfe7298a01dff84f5f22e4df0a91fae
fs: add support for allowing applications to pass in write life time hints

Add four flags for the pwritev2(2) system call, allowing an application
to give the kernel a hint about what on-media life times can be
expected from a given write.

The intent is for these values to be relative to each other, no
absolute meaning should be attached to these flag names.

Define IOCB flags to carry this information over, and finally
transform them into the block defined stream values.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/read_write.c
include/linux/fs.h
include/uapi/linux/fs.h