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

[ Upstream commit 4c831f30475a222046ded25560c3810117a6cff6 ]

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-2-frank.li@vivo.com
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/hfs/inode.c