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@fb.com>
Thu, 15 Jun 2017 02:15:55 +0000 (20:15 -0600)
commit319a882b6f8343c6e1eb4bd4eb384b750982411d
tree5c6b0e4e140ce45b2d2c42461958104fca8669ef
parent4433165183f58bdc57530d053011184a3d16a25b
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 over this information from the pwritev2
RWF_WRITE_LIFE_* flags.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/read_write.c
include/linux/fs.h
include/uapi/linux/fs.h