diff options
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_fs.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index a507d0b5be6c..d9ff283f725e 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c | |||
@@ -66,8 +66,8 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, | |||
66 | inode->i_private = data; | 66 | inode->i_private = data; |
67 | if ((mode & S_IFMT) == S_IFDIR) { | 67 | if ((mode & S_IFMT) == S_IFDIR) { |
68 | inode->i_op = &simple_dir_inode_operations; | 68 | inode->i_op = &simple_dir_inode_operations; |
69 | inode->i_nlink++; | 69 | inc_nlink(inode); |
70 | dir->i_nlink++; | 70 | inc_nlink(dir); |
71 | } | 71 | } |
72 | 72 | ||
73 | inode->i_fop = fops; | 73 | inode->i_fop = fops; |