diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-10-08 19:39:21 -0400 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-10-09 20:06:16 -0400 |
commit | ba0b996d01eaca4f3cc1f07dcc238fcad7e0d427 (patch) | |
tree | afadc3fe5f44d6ddf966ce8b1fdcb1a3d525df1b /arch | |
parent | e2ed6e4daa6f16f088600d98568cb5730b5238a6 (diff) |
powerpc/spufs: use inc_nlink
Style change: use inc_nlink instead of incrementing i_nlink directly
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'arch')
-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: |