On 3/17/22 2:18 PM, Gao Xiang wrote: > On Wed, Mar 16, 2022 at 09:17:18PM +0800, Jeffle Xu wrote: >> This patch implements the data plane of reading data from bootstrap blob >> file over fscache for non-inline layout. >> >> Be noted that compressed layout is not supported yet. >> >> Signed-off-by: Jeffle Xu <jeffl...@linux.alibaba.com> >> --- >> fs/erofs/fscache.c | 94 +++++++++++++++++++++++++++++++++++++++++++++ >> fs/erofs/inode.c | 6 ++- >> fs/erofs/internal.h | 1 + >> 3 files changed, 100 insertions(+), 1 deletion(-) >> >> diff --git a/fs/erofs/fscache.c b/fs/erofs/fscache.c >> index 654414aa87ad..df56562f33c4 100644 >> --- a/fs/erofs/fscache.c >> +++ b/fs/erofs/fscache.c >> @@ -4,6 +4,12 @@ >> */ >> #include "internal.h" >> >> +struct erofs_fscache_map { >> + struct erofs_fscache_context *m_ctx; >> + erofs_off_t m_pa, m_la, o_la; >> + u64 m_llen; > > Can we directly use "struct erofs_map_blocks map"? > So "erofs_fscache_get_map" can be avoided then. OK, the extra fields will be folded into "struct erofs_map_blocks map". -- Thanks, Jeffle -- Linux-cachefs mailing list Linux-cachefs@redhat.com https://listman.redhat.com/mailman/listinfo/linux-cachefs
- [Linux-cachefs] [PATCH v5 08/22] erofs: use meta buffers... Jeffle Xu
- [Linux-cachefs] [PATCH v5 11/22] erofs: register global ... Jeffle Xu
- Re: [Linux-cachefs] [PATCH v5 11/22] erofs: registe... kernel test robot
- Re: [Linux-cachefs] [PATCH v5 11/22] erofs: registe... kernel test robot
- [Linux-cachefs] [PATCH v5 01/22] fscache: export fscache... Jeffle Xu
- [Linux-cachefs] [PATCH v5 04/22] cachefiles: notify user... Jeffle Xu
- Re: [Linux-cachefs] [PATCH v5 04/22] cachefiles: no... kernel test robot
- [Linux-cachefs] [PATCH v5 07/22] cachefiles: document on... Jeffle Xu
- [Linux-cachefs] [PATCH v5 17/22] erofs: implement fscach... Jeffle Xu
- Re: [Linux-cachefs] [PATCH v5 17/22] erofs: impleme... Gao Xiang
- Re: [Linux-cachefs] [PATCH v5 17/22] erofs: imp... JeffleXu
- [Linux-cachefs] [PATCH v5 05/22] cachefiles: notify user... Jeffle Xu
- [Linux-cachefs] [PATCH v5 15/22] erofs: register cookie ... Jeffle Xu
- [Linux-cachefs] [PATCH v5 12/22] erofs: add cookie conte... Jeffle Xu
- [Linux-cachefs] [PATCH v5 18/22] erofs: implement fscach... Jeffle Xu
- [Linux-cachefs] [PATCH v5 19/22] erofs: register cookie ... Jeffle Xu
- [Linux-cachefs] [PATCH v5 09/22] erofs: make erofs_map_b... Jeffle Xu
- [Linux-cachefs] [PATCH v5 03/22] cachefiles: introduce o... Jeffle Xu