erofs: put metabuf in error path in fscache mode
authorJingbo Xu <jefflexu@linux.alibaba.com>
Fri, 4 Nov 2022 05:40:27 +0000 (13:40 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 8 Nov 2022 06:45:44 +0000 (14:45 +0800)
commit75e43355cbe4d5948a79bd592f2ffecb9f75f75d
tree2c569786a7bc1f8bcb3e635e2cbdd9e9a48dbe59
parente5126de138caef0eedb3d6431059c0c5581a1a5d
erofs: put metabuf in error path in fscache mode

For tail packing layout, put metabuf when error is encountered.

Fixes: 1ae9470c3e14 ("erofs: clean up .read_folio() and .readahead() in fscache mode")
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Jia Zhu <zhujia.zj@bytedance.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20221104054028.52208-2-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/fscache.c