summaryrefslogtreecommitdiffstats
path: root/fs/debugfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/debugfs/inode.c')
-rw-r--r--fs/debugfs/inode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 7fb1732a3630..7fd4ec4bb214 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -187,9 +187,9 @@ static const struct super_operations debugfs_super_operations = {
187 187
188static struct vfsmount *debugfs_automount(struct path *path) 188static struct vfsmount *debugfs_automount(struct path *path)
189{ 189{
190 struct vfsmount *(*f)(void *); 190 debugfs_automount_t f;
191 f = (struct vfsmount *(*)(void *))path->dentry->d_fsdata; 191 f = (debugfs_automount_t)path->dentry->d_fsdata;
192 return f(d_inode(path->dentry)->i_private); 192 return f(path->dentry, d_inode(path->dentry)->i_private);
193} 193}
194 194
195static const struct dentry_operations debugfs_dops = { 195static const struct dentry_operations debugfs_dops = {
@@ -540,7 +540,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_dir);
540 */ 540 */
541struct dentry *debugfs_create_automount(const char *name, 541struct dentry *debugfs_create_automount(const char *name,
542 struct dentry *parent, 542 struct dentry *parent,
543 struct vfsmount *(*f)(void *), 543 debugfs_automount_t f,
544 void *data) 544 void *data)
545{ 545{
546 struct dentry *dentry = start_creating(name, parent); 546 struct dentry *dentry = start_creating(name, parent);