#include "smfs_internal.h"
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
-static struct super_block *smfs_read_super(struct super_block *sb, void *data,
- int silent)
+static struct super_block *smfs_read_super(struct super_block *sb,
+ void *data, int silent)
{
int err;
.read_super = smfs_read_super,
};
#else
-struct super_block *smfs_get_sb(struct file_system_type *fs_type, int flags,
- const char *dev_name, void *data)
+struct super_block *smfs_get_super(struct file_system_type *fs_type,
+ int flags, const char *dev_name,
+ void *data)
{
return get_sb_nodev(fs_type, flags, data, smfs_fill_super);
}
+void smfs_kill_super(struct super_block *sb)
+{
+ kill_anon_super(sb);
+}
+
static struct file_system_type smfs_type = {
.owner = THIS_MODULE,
.name = "smfs",
- .get_sb = smfs_get_sb,
- .kill_sb = kill_anon_super,
+ .get_sb = smfs_get_super,
+ .kill_sb = smfs_kill_super,
};
#endif
CERROR("unregister_filesystem() failed, rc = %d\n", err);
return 0;
}
+
static int init_smfs(void)
{
int err;
CERROR("register_filesystem() failed, rc = %d\n", err);
return err;
}
+
static int __init smfs_init(void)
{
int err;