diff options
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index 0d262b9f94a7..d79ac67c9df1 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
@@ -298,8 +298,8 @@ spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags, | |||
298 | 298 | ||
299 | d_instantiate(dentry, inode); | 299 | d_instantiate(dentry, inode); |
300 | dget(dentry); | 300 | dget(dentry); |
301 | dir->i_nlink++; | 301 | inc_nlink(dir); |
302 | dentry->d_inode->i_nlink++; | 302 | inc_nlink(dentry->d_inode); |
303 | goto out; | 303 | goto out; |
304 | 304 | ||
305 | out_free_ctx: | 305 | out_free_ctx: |
@@ -538,8 +538,8 @@ spufs_mkgang(struct inode *dir, struct dentry *dentry, int mode) | |||
538 | inode->i_fop = &simple_dir_operations; | 538 | inode->i_fop = &simple_dir_operations; |
539 | 539 | ||
540 | d_instantiate(dentry, inode); | 540 | d_instantiate(dentry, inode); |
541 | dir->i_nlink++; | 541 | inc_nlink(dir); |
542 | dentry->d_inode->i_nlink++; | 542 | inc_nlink(dentry->d_inode); |
543 | return ret; | 543 | return ret; |
544 | 544 | ||
545 | out_iput: | 545 | out_iput: |