summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/io_uring.h
diff options
context:
space:
mode:
authorJens Axboe2019-04-09 22:56:44 +0200
committerJens Axboe2019-05-02 22:08:54 +0200
commit5d17b4a4b7fa172b205be8a05051ae705d1dc3bb (patch)
tree53f3203ab16e580a9882ba48bcc7e3226b39d50d /include/uapi/linux/io_uring.h
parentfs: add sync_file_range() helper (diff)
downloadkernel-qcow2-linux-5d17b4a4b7fa172b205be8a05051ae705d1dc3bb.tar.gz
kernel-qcow2-linux-5d17b4a4b7fa172b205be8a05051ae705d1dc3bb.tar.xz
kernel-qcow2-linux-5d17b4a4b7fa172b205be8a05051ae705d1dc3bb.zip
io_uring: add support for IORING_OP_SYNC_FILE_RANGE
This behaves just like sync_file_range(2) does. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/io_uring.h')
-rw-r--r--include/uapi/linux/io_uring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index a7a6384d0c70..e707a17c6908 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -26,6 +26,7 @@ struct io_uring_sqe {
__kernel_rwf_t rw_flags;
__u32 fsync_flags;
__u16 poll_events;
+ __u32 sync_range_flags;
};
__u64 user_data; /* data to be passed back at completion time */
union {
@@ -55,6 +56,7 @@ struct io_uring_sqe {
#define IORING_OP_WRITE_FIXED 5
#define IORING_OP_POLL_ADD 6
#define IORING_OP_POLL_REMOVE 7
+#define IORING_OP_SYNC_FILE_RANGE 8
/*
* sqe->fsync_flags