aboutsummaryrefslogtreecommitdiffstats
path: root/fs/debugfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/debugfs/inode.c')
-rw-r--r--fs/debugfs/inode.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index b55b4ea9a676..e8ae3042b806 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -16,7 +16,6 @@
16/* uncomment to get debug messages from the debug filesystem, ah the irony. */ 16/* uncomment to get debug messages from the debug filesystem, ah the irony. */
17/* #define DEBUG */ 17/* #define DEBUG */
18 18
19#include <linux/config.h>
20#include <linux/module.h> 19#include <linux/module.h>
21#include <linux/fs.h> 20#include <linux/fs.h>
22#include <linux/mount.h> 21#include <linux/mount.h>
@@ -111,11 +110,11 @@ static int debug_fill_super(struct super_block *sb, void *data, int silent)
111 return simple_fill_super(sb, DEBUGFS_MAGIC, debug_files); 110 return simple_fill_super(sb, DEBUGFS_MAGIC, debug_files);
112} 111}
113 112
114static struct super_block *debug_get_sb(struct file_system_type *fs_type, 113static int debug_get_sb(struct file_system_type *fs_type,
115 int flags, const char *dev_name, 114 int flags, const char *dev_name,
116 void *data) 115 void *data, struct vfsmount *mnt)
117{ 116{
118 return get_sb_single(fs_type, flags, data, debug_fill_super); 117 return get_sb_single(fs_type, flags, data, debug_fill_super, mnt);
119} 118}
120 119
121static struct file_system_type debug_fs_type = { 120static struct file_system_type debug_fs_type = {
@@ -199,7 +198,7 @@ struct dentry *debugfs_create_file(const char *name, mode_t mode,
199 198
200 pr_debug("debugfs: creating file '%s'\n",name); 199 pr_debug("debugfs: creating file '%s'\n",name);
201 200
202 error = simple_pin_fs("debugfs", &debugfs_mount, &debugfs_mount_count); 201 error = simple_pin_fs(&debug_fs_type, &debugfs_mount, &debugfs_mount_count);
203 if (error) 202 if (error)
204 goto exit; 203 goto exit;
205 204