diff options
Diffstat (limited to 'fs/debugfs/inode.c')
-rw-r--r-- | fs/debugfs/inode.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index c9dc08d0c100..956d5ddddf6e 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -30,7 +30,7 @@ static struct vfsmount *debugfs_mount; | |||
30 | static int debugfs_mount_count; | 30 | static int debugfs_mount_count; |
31 | static bool debugfs_registered; | 31 | static bool debugfs_registered; |
32 | 32 | ||
33 | static struct inode *debugfs_get_inode(struct super_block *sb, int mode, dev_t dev, | 33 | static struct inode *debugfs_get_inode(struct super_block *sb, umode_t mode, dev_t dev, |
34 | void *data, const struct file_operations *fops) | 34 | void *data, const struct file_operations *fops) |
35 | 35 | ||
36 | { | 36 | { |
@@ -69,7 +69,7 @@ static struct inode *debugfs_get_inode(struct super_block *sb, int mode, dev_t d | |||
69 | 69 | ||
70 | /* SMP-safe */ | 70 | /* SMP-safe */ |
71 | static int debugfs_mknod(struct inode *dir, struct dentry *dentry, | 71 | static int debugfs_mknod(struct inode *dir, struct dentry *dentry, |
72 | int mode, dev_t dev, void *data, | 72 | umode_t mode, dev_t dev, void *data, |
73 | const struct file_operations *fops) | 73 | const struct file_operations *fops) |
74 | { | 74 | { |
75 | struct inode *inode; | 75 | struct inode *inode; |
@@ -87,7 +87,7 @@ static int debugfs_mknod(struct inode *dir, struct dentry *dentry, | |||
87 | return error; | 87 | return error; |
88 | } | 88 | } |
89 | 89 | ||
90 | static int debugfs_mkdir(struct inode *dir, struct dentry *dentry, int mode, | 90 | static int debugfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode, |
91 | void *data, const struct file_operations *fops) | 91 | void *data, const struct file_operations *fops) |
92 | { | 92 | { |
93 | int res; | 93 | int res; |
@@ -101,14 +101,14 @@ static int debugfs_mkdir(struct inode *dir, struct dentry *dentry, int mode, | |||
101 | return res; | 101 | return res; |
102 | } | 102 | } |
103 | 103 | ||
104 | static int debugfs_link(struct inode *dir, struct dentry *dentry, int mode, | 104 | static int debugfs_link(struct inode *dir, struct dentry *dentry, umode_t mode, |
105 | void *data, const struct file_operations *fops) | 105 | void *data, const struct file_operations *fops) |
106 | { | 106 | { |
107 | mode = (mode & S_IALLUGO) | S_IFLNK; | 107 | mode = (mode & S_IALLUGO) | S_IFLNK; |
108 | return debugfs_mknod(dir, dentry, mode, 0, data, fops); | 108 | return debugfs_mknod(dir, dentry, mode, 0, data, fops); |
109 | } | 109 | } |
110 | 110 | ||
111 | static int debugfs_create(struct inode *dir, struct dentry *dentry, int mode, | 111 | static int debugfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
112 | void *data, const struct file_operations *fops) | 112 | void *data, const struct file_operations *fops) |
113 | { | 113 | { |
114 | int res; | 114 | int res; |
@@ -146,7 +146,7 @@ static struct file_system_type debug_fs_type = { | |||
146 | .kill_sb = kill_litter_super, | 146 | .kill_sb = kill_litter_super, |
147 | }; | 147 | }; |
148 | 148 | ||
149 | static int debugfs_create_by_name(const char *name, mode_t mode, | 149 | static int debugfs_create_by_name(const char *name, umode_t mode, |
150 | struct dentry *parent, | 150 | struct dentry *parent, |
151 | struct dentry **dentry, | 151 | struct dentry **dentry, |
152 | void *data, | 152 | void *data, |
@@ -214,7 +214,7 @@ static int debugfs_create_by_name(const char *name, mode_t mode, | |||
214 | * If debugfs is not enabled in the kernel, the value -%ENODEV will be | 214 | * If debugfs is not enabled in the kernel, the value -%ENODEV will be |
215 | * returned. | 215 | * returned. |
216 | */ | 216 | */ |
217 | struct dentry *debugfs_create_file(const char *name, mode_t mode, | 217 | struct dentry *debugfs_create_file(const char *name, umode_t mode, |
218 | struct dentry *parent, void *data, | 218 | struct dentry *parent, void *data, |
219 | const struct file_operations *fops) | 219 | const struct file_operations *fops) |
220 | { | 220 | { |