don't opencode iget_failed()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
886f56f970
commit
0e81ba2312
|
@ -126,9 +126,7 @@ struct inode *ll_iget(struct super_block *sb, ino_t hash,
|
||||||
rc = cl_file_inode_init(inode, md);
|
rc = cl_file_inode_init(inode, md);
|
||||||
}
|
}
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
make_bad_inode(inode);
|
iget_failed(inode);
|
||||||
unlock_new_inode(inode);
|
|
||||||
iput(inode);
|
|
||||||
inode = ERR_PTR(rc);
|
inode = ERR_PTR(rc);
|
||||||
} else
|
} else
|
||||||
unlock_new_inode(inode);
|
unlock_new_inode(inode);
|
||||||
|
|
|
@ -282,9 +282,7 @@ ecryptfs_create(struct inode *directory_inode, struct dentry *ecryptfs_dentry,
|
||||||
if (rc) {
|
if (rc) {
|
||||||
ecryptfs_do_unlink(directory_inode, ecryptfs_dentry,
|
ecryptfs_do_unlink(directory_inode, ecryptfs_dentry,
|
||||||
ecryptfs_inode);
|
ecryptfs_inode);
|
||||||
make_bad_inode(ecryptfs_inode);
|
iget_failed(ecryptfs_inode);
|
||||||
unlock_new_inode(ecryptfs_inode);
|
|
||||||
iput(ecryptfs_inode);
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
unlock_new_inode(ecryptfs_inode);
|
unlock_new_inode(ecryptfs_inode);
|
||||||
|
|
Loading…
Reference in New Issue