]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hfsplus: make splice write available again
authorYangtao Li <frank.li@vivo.com>
Thu, 29 May 2025 14:00:31 +0000 (08:00 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:08:40 +0000 (12:08 +0200)
commit1de5895fe68d74cdd206707e6e1c18352a9b35e7
tree417a56e1088c68d3cad232a1a274538bd370c685
parentd89f71aece34474738fff62a55093a942eede1f8
hfsplus: make splice write available again

[ Upstream commit 2eafb669da0bf71fac0838bff13594970674e2b4 ]

Since 5.10, splice() or sendfile() 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.

Fixes: 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops")
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Viacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Link: https://lore.kernel.org/r/20250529140033.2296791-1-frank.li@vivo.com
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/hfsplus/inode.c