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 <[email protected]> Signed-off-by: Hongbo Li <[email protected]> Reviewed-by: Jingbo Xu <[email protected]> Reviewed-by: Chao Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Gao Xiang <[email protected]>
1 parent ed30a4a commit 17597b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)