Skip to contentSkip to conversation

nilfs2-make-splice-write-available-again.patch removed from -mm tree

merged [email protected] 1 participant 1 message Feb 11, 2021 Stable branch

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: nilfs2: make splice write available again
has been removed from the -mm tree. Its filename was
nilfs2-make-splice-write-available-again.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Joachim Henke <[email protected]>
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.

---

 fs/nilfs2/file.c |    1 +
 1 file changed, 1 insertion(+)
fs/nilfs2/file.c renamed from fs/nilfs2/file.c~nilfs2-make-splice-write-available-again +1 -0
@@ -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 [email protected] are