[PATCH] erofs: avoid noisy messages for transient -ENOMEM
Chao Yu
chao at kernel.org
Thu Jan 22 20:03:52 AEDT 2026
On 12/26/2025 2:09 PM, Gao Xiang wrote:
> EROFS may allocate temporary pages using GFP_NOWAIT | GFP_NORETRY
> when pcl->besteffort is off (e.g., for readahead requests).
>
> If the allocation fails, the original request will fall back to
> synchronous read, so the failure is transient.
>
> Such fallback can frequently happen in low memory scenarios, but since
> these failures are expected and temporary, avoid printing error
> messages like below:
>
> [ 7425.184264] erofs (device sr0): failed to decompress (lz4) -ENOMEM @ pa 148447232 size 28672 => 26788
> [ 7426.244267] erofs (device sr0): failed to decompress (lz4) -ENOMEM @ pa 149422080 size 28672 => 15903
> [ 7426.245508] erofs (device sr0): failed to decompress (lz4) -ENOMEM @ pa 138440704 size 28672 => 39294
> ...
> [ 7504.258373] erofs (device sr0): failed to decompress (lz4) -ENOMEM @ pa 93581312 size 20480 => 47366
>
> Fixes: 831faabed812 ("erofs: improve decompression error reporting")
> Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
Reviewed-by: Chao Yu <chao at kernel.org>
Thanks,
More information about the Linux-erofs
mailing list