* + nilfs2-make-splice-write-available-again.patch added to -mm tree
@ 2021-02-08 21:06 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-02-08 21:06 UTC (permalink / raw)
To: joachim.henke, konishi.ryusuke, mm-commits, stable
The patch titled
Subject: nilfs2: make splice write available again
has been added to the -mm tree. Its filename is
nilfs2-make-splice-write-available-again.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/nilfs2-make-splice-write-available-again.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/nilfs2-make-splice-write-available-again.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Joachim Henke <joachim.henke@t-systems.com>
Subject: nilfs2: make splice write available again
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 <joachim.henke@t-systems.com>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Tested-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: <stable@vger.kernel.org> [5.10+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/nilfs2/file.c | 1 +
1 file changed, 1 insertion(+)
--- a/fs/nilfs2/file.c~nilfs2-make-splice-write-available-again
+++ a/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 = {
_
Patches currently in -mm which might be from joachim.henke@t-systems.com are
nilfs2-make-splice-write-available-again.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-08 21:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-08 21:06 + nilfs2-make-splice-write-available-again.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).