Skip to content

Commit

Permalink
Merge commit 'jk/jk-merge'
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Herrenschmidt committed Oct 10, 2008
2 parents 8f64e1f + 6747c2e commit bb3d55e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions arch/powerpc/platforms/cell/spufs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -496,6 +496,8 @@ spufs_create_context(struct inode *inode, struct dentry *dentry,
ret = spufs_context_open(dget(dentry), mntget(mnt));
if (ret < 0) {
WARN_ON(spufs_rmdir(inode, dentry));
if (affinity)
mutex_unlock(&gang->aff_mutex);
mutex_unlock(&inode->i_mutex);
spu_forget(SPUFS_I(dentry->d_inode)->i_ctx);
goto out;
Expand Down Expand Up @@ -538,8 +540,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:
Expand Down Expand Up @@ -755,6 +757,7 @@ spufs_create_root(struct super_block *sb, void *data)
inode->i_op = &simple_dir_inode_operations;
inode->i_fop = &simple_dir_operations;
SPUFS_I(inode)->i_ctx = NULL;
inc_nlink(inode);

ret = -EINVAL;
if (!spufs_parse_options(sb, data, inode))
Expand Down

0 comments on commit bb3d55e

Please sign in to comment.