erofs: clean up .read_folio() and .readahead() in fscache mode
authorJingbo Xu <jefflexu@linux.alibaba.com>
Thu, 22 Sep 2022 06:24:14 +0000 (14:24 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 23 Sep 2022 01:52:42 +0000 (09:52 +0800)
commit1ae9470c3e14624b0f4d8741c22b5a94062c0e33
tree8ad4e1e1151daecac89d046c18bc73b83d00c2da
parent2ef164414123fcf574aff7a0be5f71f7e60a3fec
erofs: clean up .read_folio() and .readahead() in fscache mode

The implementation of these two functions in fscache mode is almost the
same. Extract the same part as a generic helper to remove the code
duplication.

Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Jia Zhu <zhujia.zj@bytedance.com>
Link: https://lore.kernel.org/r/20220922062414.20437-1-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/fscache.c