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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index bece948b363d..8580831ed237 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -457,7 +457,7 @@ struct dentry *debugfs_create_automount(const char *name,
457 if (unlikely(!inode)) 457 if (unlikely(!inode))
458 return failed_creating(dentry); 458 return failed_creating(dentry);
459 459
460 inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO; 460 make_empty_dir_inode(inode);
461 inode->i_flags |= S_AUTOMOUNT; 461 inode->i_flags |= S_AUTOMOUNT;
462 inode->i_private = data; 462 inode->i_private = data;
463 dentry->d_fsdata = (void *)f; 463 dentry->d_fsdata = (void *)f;