|
@@ -67,6 +67,11 @@ static inline struct nilfs_mdt_info *NILFS_MDT(const struct inode *inode)
|
|
return inode->i_private;
|
|
return inode->i_private;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline int nilfs_is_metadata_file_inode(const struct inode *inode)
|
|
|
|
+{
|
|
|
|
+ return inode->i_private != NULL;
|
|
|
|
+}
|
|
|
|
+
|
|
/* Default GFP flags using highmem */
|
|
/* Default GFP flags using highmem */
|
|
#define NILFS_MDT_GFP (__GFP_RECLAIM | __GFP_IO | __GFP_HIGHMEM)
|
|
#define NILFS_MDT_GFP (__GFP_RECLAIM | __GFP_IO | __GFP_HIGHMEM)
|
|
|
|
|
|
@@ -82,6 +87,9 @@ int nilfs_mdt_forget_block(struct inode *, unsigned long);
|
|
int nilfs_mdt_fetch_dirty(struct inode *);
|
|
int nilfs_mdt_fetch_dirty(struct inode *);
|
|
|
|
|
|
int nilfs_mdt_init(struct inode *inode, gfp_t gfp_mask, size_t objsz);
|
|
int nilfs_mdt_init(struct inode *inode, gfp_t gfp_mask, size_t objsz);
|
|
|
|
+void nilfs_mdt_clear(struct inode *inode);
|
|
|
|
+void nilfs_mdt_destroy(struct inode *inode);
|
|
|
|
+
|
|
void nilfs_mdt_set_entry_size(struct inode *, unsigned, unsigned);
|
|
void nilfs_mdt_set_entry_size(struct inode *, unsigned, unsigned);
|
|
|
|
|
|
int nilfs_mdt_setup_shadow_map(struct inode *inode,
|
|
int nilfs_mdt_setup_shadow_map(struct inode *inode,
|