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>
Wed, 14 Jun 2017 18:55:45 +0000 (12:55 -0600)
commit820d7731599f733bab70e7acabfdc48b6cd3c0ee
treeaaa6f7c9b2346f68d9b3e34166d8945f4e2cf03d
parent09227116fbe9eff9d7557645bf65d7555240ee56
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.

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