]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add fsync support
authorChristoph Hellwig <hch@lst.de>
Fri, 11 Jan 2019 16:43:02 +0000 (09:43 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2019 15:24:23 +0000 (08:24 -0700)
commit216902487270878b03c085ca3bdcf5a91a3df337
tree73f2b974fc7f798adf591ac2ce0ff81098378216
parent33a202aa3b2297a3ca520b08717772ac9f2e4220
io_uring: add fsync support

Add a new fsync opcode, which either syncs a range if one is passed,
or the whole file if the offset and length fields are both cleared
to zero.  A flag is provided to use fdatasync semantics, that is only
force out metadata which is required to retrieve the file data, but
not others like metadata.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h