fs: add support for allowing applications to pass in write life time hints
authorJens Axboe <axboe@kernel.dk>
Fri, 16 Jun 2017 16:46:26 +0000 (10:46 -0600)
committerJens Axboe <axboe@fb.com>
Sat, 17 Jun 2017 19:54:16 +0000 (13:54 -0600)
commitb610abd212c30234156bce75ea66d2b9efbbb440
treee8adf26ffe0833aa50845d7a906ed535b04770d3
parent6e001309d91902c1749455327c7aedd4ab6c11a0
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