]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28935b4b76cd36215f0e695700f62a7d5b58e562
tree8ad4e1e1151daecac89d046c18bc73b83d00c2da
parentdff4581182d315427e3b19e63c78e05dfce400df
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