fs: add support for allowing applications to pass in write life time hints
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Jun 2017 16:28:39 +0000 (10:28 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Jun 2017 16:28:39 +0000 (10:28 -0600)
commitb22d3473cbd9219323a6cc0d27ec2973a03a5f49
tree827003603426272f76296f4155786c5e0ba0b0d3
parent49439c0c253a4aaa85ac58910bd62b8d210501ca
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.

Set aside 3 bits in the iocb flags structure to carry this information
over from the pwritev2 RWF_WRITE_LIFE_* flags.

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