Re: [PATCH] erofs: fix unsupported blksize in fileio mode

From: Gao Xiang
Date: Mon Oct 14 2024 - 23:47:45 EST


Hi Hongzhen,

On 2024/10/15 11:36, Hongzhen Luo wrote:
In fileio mode, when blcksize is not equal to PAGE_SIZE,
erofs will attempt to set the block size of sb->s_bdev,
which will trigger a panic. This patch fixes this.

Fixes: fb176750266a ("erofs: add file-backed mount support")

Signed-off-by: Hongzhen Luo <hongzhen@xxxxxxxxxxxxxxxxx>

File-backed mounts should support < PAGE_SIZE sizes.
You should just fix these cases instead.

Thanks,
Gao Xiang