Commit ba0b996d authored by Jeremy Kerr's avatar Jeremy Kerr

powerpc/spufs: use inc_nlink

Style change: use inc_nlink instead of incrementing i_nlink directly
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent e2ed6e4d
...@@ -298,8 +298,8 @@ spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags, ...@@ -298,8 +298,8 @@ spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags,
d_instantiate(dentry, inode); d_instantiate(dentry, inode);
dget(dentry); dget(dentry);
dir->i_nlink++; inc_nlink(dir);
dentry->d_inode->i_nlink++; inc_nlink(dentry->d_inode);
goto out; goto out;
out_free_ctx: out_free_ctx:
...@@ -538,8 +538,8 @@ spufs_mkgang(struct inode *dir, struct dentry *dentry, int mode) ...@@ -538,8 +538,8 @@ spufs_mkgang(struct inode *dir, struct dentry *dentry, int mode)
inode->i_fop = &simple_dir_operations; inode->i_fop = &simple_dir_operations;
d_instantiate(dentry, inode); d_instantiate(dentry, inode);
dir->i_nlink++; inc_nlink(dir);
dentry->d_inode->i_nlink++; inc_nlink(dentry->d_inode);
return ret; return ret;
out_iput: out_iput:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment