Whamcloud - gitweb
Update smfs: fix bugs of smfs_create
[fs/lustre-release.git] / lustre / smfs / smfs_internal.h
index 0e5c1d2..a84ec67 100644 (file)
@@ -58,9 +58,10 @@ void sm_set_sb_ops(struct super_block *cache_sb, struct super_block *sb);
 void init_smfs_cache(void);
 void cleanup_smfs_cache(void);
 /*super.c*/
-int init_smfs(void);
-int cleanup_smfs(void);
-void smfs_put_super(struct super_block *sb);
+extern int init_smfs(void);
+extern int cleanup_smfs(void);
+extern void smfs_put_super(struct super_block *sb);
+extern void duplicate_sb(struct super_block *csb, struct super_block *sb);
 /*sysctl.c*/
 extern int sm_debug_level;
 extern int sm_inodes;
@@ -69,6 +70,11 @@ extern int sm_stack;
 /*dir.c*/
 extern struct inode_operations smfs_dir_iops; 
 extern struct file_operations smfs_dir_fops; 
+extern int smfs_prepare_dentry(struct dentry *dentry, 
+                              struct dentry *parent,
+                              struct qstr *name);
+
+void smfs_clear_dentry(struct dentry *dentry);
 /*inode.c*/
 extern void duplicate_inode(struct inode *cache_inode, struct inode *inode);
 /*file.c*/