powerpc/spufs: use inc_nlink
authorJeremy Kerr <jk@ozlabs.org>
Wed, 8 Oct 2008 23:39:21 +0000 (10:39 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 10 Oct 2008 00:06:16 +0000 (11:06 +1100)
Style change: use inc_nlink instead of incrementing i_nlink directly

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/inode.c

index 0d262b9f94a7cbbb17465ffd2adeed0f96778978..d79ac67c9df12f26b7f0cb5a12afe2484279863d 100644 (file)
@@ -298,8 +298,8 @@ spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags,
 
        d_instantiate(dentry, inode);
        dget(dentry);
-       dir->i_nlink++;
-       dentry->d_inode->i_nlink++;
+       inc_nlink(dir);
+       inc_nlink(dentry->d_inode);
        goto out;
 
 out_free_ctx:
@@ -538,8 +538,8 @@ spufs_mkgang(struct inode *dir, struct dentry *dentry, int mode)
        inode->i_fop = &simple_dir_operations;
 
        d_instantiate(dentry, inode);
-       dir->i_nlink++;
-       dentry->d_inode->i_nlink++;
+       inc_nlink(dir);
+       inc_nlink(dentry->d_inode);
        return ret;
 
 out_iput: