erofs: check the uniqueness of fsid in shared domain in advance
[platform/kernel/linux-starfive.git] / fs / erofs / internal.h
index 05dc686..e51f27b 100644 (file)
@@ -604,13 +604,18 @@ static inline int z_erofs_load_lzma_config(struct super_block *sb,
 }
 #endif /* !CONFIG_EROFS_FS_ZIP */
 
+/* flags for erofs_fscache_register_cookie() */
+#define EROFS_REG_COOKIE_NEED_INODE    1
+#define EROFS_REG_COOKIE_NEED_NOEXIST  2
+
 /* fscache.c */
 #ifdef CONFIG_EROFS_FS_ONDEMAND
 int erofs_fscache_register_fs(struct super_block *sb);
 void erofs_fscache_unregister_fs(struct super_block *sb);
 
 struct erofs_fscache *erofs_fscache_register_cookie(struct super_block *sb,
-                                                    char *name, bool need_inode);
+                                                   char *name,
+                                                   unsigned int flags);
 void erofs_fscache_unregister_cookie(struct erofs_fscache *fscache);
 
 extern const struct address_space_operations erofs_fscache_access_aops;
@@ -623,7 +628,8 @@ static inline void erofs_fscache_unregister_fs(struct super_block *sb) {}
 
 static inline
 struct erofs_fscache *erofs_fscache_register_cookie(struct super_block *sb,
-                                                    char *name, bool need_inode)
+                                                    char *name,
+                                                    unsigned int flags)
 {
        return ERR_PTR(-EOPNOTSUPP);
 }