Commit 1de5895f authored by Yangtao Li's avatar Yangtao Li Committed by Greg Kroah-Hartman
Browse files

hfsplus: make splice write available again



[ Upstream commit 2eafb669 ]

Since 5.10, splice() or sendfile() return EINVAL. This was
caused by commit 36e2c742 ("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: 36e2c742 ("fs: don't allow splice read/write without explicit ops")
Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
Reviewed-by: default avatarViacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: default avatarViacheslav Dubeyko <slava@dubeyko.com>
Link: https://lore.kernel.org/r/20250529140033.2296791-1-frank.li@vivo.com


Signed-off-by: default avatarViacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d89f71ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment