Add three new hooks in struct file_operations to allow fileystems to manage write streams at per-file level. Signed-off-by: Kanchan Joshi --- include/linux/fs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index 2e4d1e8b0e71..ff9aa391eda7 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1967,6 +1967,12 @@ struct file_operations { int (*uring_cmd_iopoll)(struct io_uring_cmd *, struct io_comp_batch *, unsigned int poll_flags); int (*mmap_prepare)(struct vm_area_desc *); + /* To fetch number of streams that are available for a file */ + int (*get_max_write_streams)(struct file *); + /* To set write stream on a file */ + int (*set_write_stream)(struct file *, unsigned long); + /* To query the write stream on a file */ + int (*get_write_stream)(struct file *); } __randomize_layout; /* Supports async buffered reads */ -- 2.25.1