[PATCH 02/17] fs: add file_operations->async_cmd()

Kanchan Joshi
2022-03-08T15:42:38Z

From: Jens Axboe <axboe@kernel.dk>

This is a file private handler, similar to ioctls but hopefully a lot
more sane and useful.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
---
include/linux/fs.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/fs.h b/include/linux/fs.h
index e2d892b201b0..a32f83b70435 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1977,6 +1977,7 @@ struct dir_context {
#define REMAP_FILE_ADVISORY (REMAP_FILE_CAN_SHORTEN)

struct iov_iter;
+struct io_uring_cmd;

struct file_operations {
struct module *owner;
@@ -2019,6 +2020,7 @@ struct file_operations {
struct file *file_out, loff_t pos_out,
loff_t len, unsigned int remap_flags);
int (*fadvise)(struct file *, loff_t, loff_t, int);
+ int (*async_cmd)(struct io_uring_cmd *ioucmd);
} __randomize_layout;

struct inode_operations {
--
2.25.1