From: Greg Kroah-Hartman Date: Thu, 11 Feb 2021 14:23:52 +0000 (+0100) Subject: 5.10-stable patches X-Git-Tag: v4.19.176~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8aa58e140ba94788d5b6e38385ed5f575852839f;p=thirdparty%2Fkernel%2Fstable-queue.git 5.10-stable patches added patches: nilfs2-make-splice-write-available-again.patch --- diff --git a/queue-5.10/nilfs2-make-splice-write-available-again.patch b/queue-5.10/nilfs2-make-splice-write-available-again.patch new file mode 100644 index 00000000000..de9d8927aaa --- /dev/null +++ b/queue-5.10/nilfs2-make-splice-write-available-again.patch @@ -0,0 +1,38 @@ +From a35d8f016e0b68634035217d06d1c53863456b50 Mon Sep 17 00:00:00 2001 +From: Joachim Henke +Date: Tue, 9 Feb 2021 13:42:36 -0800 +Subject: nilfs2: make splice write available again + +From: Joachim Henke + +commit a35d8f016e0b68634035217d06d1c53863456b50 upstream. + +Since 5.10, splice() or sendfile() to NILFS2 return EINVAL. This was +caused by commit 36e2c7421f02 ("fs: don't allow splice read/write +without explicit ops"). + +This patch initializes the splice_write field in file_operations, like +most file systems do, to restore the functionality. + +Link: https://lkml.kernel.org/r/1612784101-14353-1-git-send-email-konishi.ryusuke@gmail.com +Signed-off-by: Joachim Henke +Signed-off-by: Ryusuke Konishi +Tested-by: Ryusuke Konishi +Cc: [5.10+] +Signed-off-by: Andrew Morton +Signed-off-by: Linus Torvalds +Signed-off-by: Greg Kroah-Hartman +--- + fs/nilfs2/file.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/fs/nilfs2/file.c ++++ b/fs/nilfs2/file.c +@@ -141,6 +141,7 @@ const struct file_operations nilfs_file_ + /* .release = nilfs_release_file, */ + .fsync = nilfs_sync_file, + .splice_read = generic_file_splice_read, ++ .splice_write = iter_file_splice_write, + }; + + const struct inode_operations nilfs_file_inode_operations = { diff --git a/queue-5.10/series b/queue-5.10/series index fe8026f7a50..d5223a78a59 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -46,3 +46,4 @@ bpf-fix-32-bit-src-register-truncation-on-div-mod.patch bpf-fix-verifier-jsgt-branch-analysis-on-max-bound.patch drm-i915-fix-icl-mg-phy-vswing-handling.patch drm-i915-skip-vswing-programming-for-tbt.patch +nilfs2-make-splice-write-available-again.patch