summaryrefslogtreecommitdiffstats
path: root/io_uring/truncate.h
diff options
context:
space:
mode:
Diffstat (limited to 'io_uring/truncate.h')
-rw-r--r--io_uring/truncate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/io_uring/truncate.h b/io_uring/truncate.h
new file mode 100644
index 0000000000..ec088293a4
--- /dev/null
+++ b/io_uring/truncate.h
@@ -0,0 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
+
+int io_ftruncate_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_ftruncate(struct io_kiocb *req, unsigned int issue_flags);