提交 66ec7b2c 编写于 作者: A Al Viro

spufs_create_context(): simplify failure exits

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 67cba9fd
...@@ -492,20 +492,14 @@ spufs_create_context(struct inode *inode, struct dentry *dentry, ...@@ -492,20 +492,14 @@ spufs_create_context(struct inode *inode, struct dentry *dentry,
} }
ret = spufs_context_open(&path); ret = spufs_context_open(&path);
if (ret < 0) { if (ret < 0)
WARN_ON(spufs_rmdir(inode, dentry)); WARN_ON(spufs_rmdir(inode, dentry));
if (affinity)
mutex_unlock(&gang->aff_mutex);
mutex_unlock(&inode->i_mutex);
goto out;
}
out_aff_unlock: out_aff_unlock:
if (affinity) if (affinity)
mutex_unlock(&gang->aff_mutex); mutex_unlock(&gang->aff_mutex);
out_unlock: out_unlock:
mutex_unlock(&inode->i_mutex); mutex_unlock(&inode->i_mutex);
out:
dput(dentry); dput(dentry);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册