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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 269e649e6dc6..ecf3da9edf21 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -54,7 +54,7 @@ static struct inode *debugfs_get_inode(struct super_block *sb, int mode, dev_t d
54 inode->i_fop = &simple_dir_operations; 54 inode->i_fop = &simple_dir_operations;
55 55
56 /* directory inodes start off with i_nlink == 2 (for "." entry) */ 56 /* directory inodes start off with i_nlink == 2 (for "." entry) */
57 inode->i_nlink++; 57 inc_nlink(inode);
58 break; 58 break;
59 } 59 }
60 } 60 }
@@ -87,7 +87,7 @@ static int debugfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
87 mode = (mode & (S_IRWXUGO | S_ISVTX)) | S_IFDIR; 87 mode = (mode & (S_IRWXUGO | S_ISVTX)) | S_IFDIR;
88 res = debugfs_mknod(dir, dentry, mode, 0); 88 res = debugfs_mknod(dir, dentry, mode, 0);
89 if (!res) 89 if (!res)
90 dir->i_nlink++; 90 inc_nlink(dir);
91 return res; 91 return res;
92} 92}
93 93