aboutsummaryrefslogtreecommitdiff
path: root/pkgs/patches-linux-5.15/142-jffs2-add-splice-ops.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/patches-linux-5.15/142-jffs2-add-splice-ops.patch')
-rw-r--r--pkgs/patches-linux-5.15/142-jffs2-add-splice-ops.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/patches-linux-5.15/142-jffs2-add-splice-ops.patch b/pkgs/patches-linux-5.15/142-jffs2-add-splice-ops.patch
new file mode 100644
index 0000000..de847a1
--- /dev/null
+++ b/pkgs/patches-linux-5.15/142-jffs2-add-splice-ops.patch
@@ -0,0 +1,20 @@
+From: Felix Fietkau <nbd@nbd.name>
+Subject: jffs2: add splice ops
+
+Add splice_read using generic_file_splice_read.
+Add splice_write using iter_file_splice_write
+
+Signed-off-by: Felix Fietkau <nbd@nbd.name>
+---
+
+--- a/fs/jffs2/file.c
++++ b/fs/jffs2/file.c
+@@ -53,6 +53,8 @@ const struct file_operations jffs2_file_
+ .open = generic_file_open,
+ .read_iter = generic_file_read_iter,
+ .write_iter = generic_file_write_iter,
++ .splice_read = generic_file_splice_read,
++ .splice_write = iter_file_splice_write,
+ .unlocked_ioctl=jffs2_ioctl,
+ .mmap = generic_file_readonly_mmap,
+ .fsync = jffs2_fsync,