fs: add support for allowing applications to pass in write life time hints
authorJens Axboe <axboe@kernel.dk>
Tue, 13 Jun 2017 16:27:03 +0000 (10:27 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 13 Jun 2017 16:36:44 +0000 (10:36 -0600)
commit29c6983d083699dbf197eb11a0f8a627c8308aba
treed2d2a28a0a2a9682479d512c3ec0cdbfb56a7230
parentd22269e83308e4e3a6d3413a18a84915f6b1b59e
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