summaryrefslogtreecommitdiff
path: root/io_uring/sync.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-05-24 21:25:19 -0600
committerJens Axboe <axboe@kernel.dk>2022-07-24 18:39:11 -0600
commit0d58472740370108f8ece9076d79f736f53b5b77 (patch)
tree2a1394f1d03df88a0bfd1f87c9f8dcd45bc27a73 /io_uring/sync.h
parent531113bbd5bfc93e8de45440752af11c751e4aaf (diff)
io_uring: split out fs related sync/fallocate functions
This splits out sync_file_range, fsync, and fallocate. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/sync.h')
-rw-r--r--io_uring/sync.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/io_uring/sync.h b/io_uring/sync.h
new file mode 100644
index 000000000000..e873c888da79
--- /dev/null
+++ b/io_uring/sync.h
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
+
+int io_sfr_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_sync_file_range(struct io_kiocb *req, unsigned int issue_flags);
+
+int io_fsync_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_fsync(struct io_kiocb *req, unsigned int issue_flags);
+
+int io_fallocate(struct io_kiocb *req, unsigned int issue_flags);
+int io_fallocate_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);