]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: fix error return code in erofs_fscache_{meta_,}read_folio
authorSun Ke <sunke32@huawei.com>
Mon, 15 Aug 2022 03:48:29 +0000 (11:48 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 5 Sep 2022 15:21:15 +0000 (23:21 +0800)
commit8f298c76214f479d3b8369dfc8813fcfc4d7195c
treefa9217830706d125eb53d9e1a691e478e2589fe0
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
erofs: fix error return code in erofs_fscache_{meta_,}read_folio

If erofs_fscache_alloc_request fail and then goto out, it will return 0.
it should return a negative error code instead of 0.

Fixes: 3aabb1a1959f ("erofs: change to use asynchronous io for fscache readpage/readahead")
Signed-off-by: Sun Ke <sunke32@huawei.com>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20220815034829.3940803-1-sunke32@huawei.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/fscache.c