erofs: print error code in erofs_err() of erofs_readdir
Under system stress tests, the following log frequently shows up:
erofs: (device dm-8): erofs_readdir: failed to readdir of logical
block 0 of nid 124
Without the err value, it is hard to tell whether the failure was
caused by an interrupted read (e.g. -EINTR) or a real I/O problem.
Print the error code so that we can get more clues to the problem.
Also fix the similar codes in other erofs_err() call sites where a
real error code is available but not printed:
- erofs_read_superblock: "cannot read erofs superblock"
- z_erofs_init_pcpu_workers: per-cpu workers allocation and CPU
hotplug init
- z_erofs_readahead: "readahead error at folio ... @ nid ..."
Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: Gao Xiang <xiang@kernel.org>
Signed-off-by: Gao Xiang (Docker) <xiang@kernel.org>
3 files changed