erofs: switch to prepare_ondemand_read() in fscache mode
authorJingbo Xu <jefflexu@linux.alibaba.com>
Thu, 24 Nov 2022 03:42:12 +0000 (11:42 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 7 Dec 2022 02:56:30 +0000 (10:56 +0800)
commit709fe09e281776b5e024fb5934c0485a866b7468
tree5d4d88c2c8910cf5ee2d77bf945d17efbefb2761
parent8669247524c73e16e4d3384c4ff882e5c5d06194
erofs: switch to prepare_ondemand_read() in fscache mode

Switch to prepare_ondemand_read() interface and a self-contained request
completion to get rid of netfs_io_[request|subrequest].

The whole request will still be split into slices (subrequest) according
to the cache state of the backing file.  As long as one of the
subrequests fails, the whole request will be marked as failed.

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