Skip to content

Commit 17597b1

Browse files
Hongbo Lihsiangkao
authored andcommitted
erofs: modify the error message when prepare_ondemand_read failed
When prepare_ondemand_read failed, wrong error message is printed. The prepare_read is also implemented in cachefiles, so we amend it. Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Signed-off-by: Hongbo Li <lihongbo22@huawei.com> Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com> Reviewed-by: Chao Yu <chao@kernel.org> Link: https://lore.kernel.org/r/20240424084247.759432-1-lihongbo22@huawei.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
1 parent ed30a4a commit 17597b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/erofs/fscache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static int erofs_fscache_read_io_async(struct fscache_cookie *cookie,
151151
if (WARN_ON(len == 0))
152152
source = NETFS_INVALID_READ;
153153
if (source != NETFS_READ_FROM_CACHE) {
154-
erofs_err(NULL, "prepare_read failed (source %d)", source);
154+
erofs_err(NULL, "prepare_ondemand_read failed (source %d)", source);
155155
return -EIO;
156156
}
157157

0 commit comments

Comments
 (0)