summaryrefslogtreecommitdiff
path: root/io_uring/fs.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-05-24 21:13:00 -0600
committerJens Axboe <axboe@kernel.dk>2022-07-24 18:39:11 -0600
commit11aeb71406ddd0ef526ad1df48b54aae628aad3b (patch)
tree1dcb74e06320e7f4e4c0e65efe3b9adc1a07240f /io_uring/fs.h
parente28683bdfc2f2cb0dab042f9079cda89dbf589d9 (diff)
downloadlwn-11aeb71406ddd0ef526ad1df48b54aae628aad3b.tar.gz
lwn-11aeb71406ddd0ef526ad1df48b54aae628aad3b.zip
io_uring: split out filesystem related operations
This splits out renameat, unlinkat, mkdirat, symlinkat, and linkat. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/fs.h')
-rw-r--r--io_uring/fs.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/io_uring/fs.h b/io_uring/fs.h
new file mode 100644
index 000000000000..0bb5efe3d6bb
--- /dev/null
+++ b/io_uring/fs.h
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0
+
+int io_renameat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_renameat(struct io_kiocb *req, unsigned int issue_flags);
+void io_renameat_cleanup(struct io_kiocb *req);
+
+int io_unlinkat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_unlinkat(struct io_kiocb *req, unsigned int issue_flags);
+void io_unlinkat_cleanup(struct io_kiocb *req);
+
+int io_mkdirat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_mkdirat(struct io_kiocb *req, unsigned int issue_flags);
+void io_mkdirat_cleanup(struct io_kiocb *req);
+
+int io_symlinkat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_symlinkat(struct io_kiocb *req, unsigned int issue_flags);
+
+int io_linkat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_linkat(struct io_kiocb *req, unsigned int issue_flags);
+void io_link_cleanup(struct io_kiocb *req);