erofs: handle end of filesystem properly for file-backed mounts

[ Upstream commit bc804a8d7e ]

I/O requests beyond the end of the filesystem should be zeroed out,
similar to loopback devices and that is what we expect.

Fixes: ce63cb62d7 ("erofs: support unencoded inodes for fileio")
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Gao Xiang 2026-01-30 15:54:22 +08:00 • committed by Sasha Levin
commit 8d582d65d2