erofs: support compressed inodes over fscache
authorJingbo Xu <jefflexu@linux.alibaba.com>
Fri, 8 Mar 2024 09:41:59 +0000 (17:41 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 10 Mar 2024 10:41:32 +0000 (18:41 +0800)
commita1bafc3109d713ed83f73d61ba5cb1e6fd80fdbc
tree571d0ec5d9a882da7e093e983e251955be9fb2f0
parentf2151df5743536e0b98a2094bd58b52d4e060016
erofs: support compressed inodes over fscache

Since fscache can utilize iov_iter to write dest buffers, bio_vec can
be used in this way too.

To simplify this, pseudo bios are prepared and bio_vec will be filled
with bio_add_page().  And a common .bi_end_io will be called directly
to handle I/O completions.

Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240308094159.40547-2-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/fscache.c
fs/erofs/inode.c
fs/erofs/internal.h
fs/erofs/zdata.c