summaryrefslogtreecommitdiff
path: root/fs/erofs/internal.h
diff options
context:
space:
mode:
authorJia Zhu <zhujia.zj@bytedance.com>2022-09-18 14:01:50 +0300
committerGao Xiang <hsiangkao@linux.alibaba.com>2022-09-20 03:01:54 +0300
commit7d41963759feb3cfa4c1164b8b9db5d1f055932d (patch)
tree1b1e9b32640f8787196991c9379d9a9368f29d3f /fs/erofs/internal.h
parenta9849560c55e9e4ab9c53d073363dd6e19ec06ef (diff)
downloadlinux-7d41963759feb3cfa4c1164b8b9db5d1f055932d.tar.xz
erofs: Support sharing cookies in the same domain
Several erofs filesystems can belong to one domain, and data blobs can be shared among these erofs filesystems of same domain. Users could specify domain_id mount option to create or join into a domain. Signed-off-by: Jia Zhu <zhujia.zj@bytedance.com> Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com> Link: https://lore.kernel.org/r/20220918110150.6338-1-zhujia.zj@bytedance.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/internal.h')
-rw-r--r--fs/erofs/internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h
index 0db56259160c..ef3f7982b92d 100644
--- a/fs/erofs/internal.h
+++ b/fs/erofs/internal.h
@@ -109,6 +109,9 @@ struct erofs_domain {
struct erofs_fscache {
struct fscache_cookie *cookie;
struct inode *inode;
+ struct inode *anon_inode;
+ struct erofs_domain *domain;
+ char *name;
};
struct erofs_sb_info {