diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-12-06 00:23:48 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-12-07 03:18:04 +0100 |
commit | 0e81ba231239b58c8b17dca18c6345c13e793824 (patch) | |
tree | abcb8705280530c2799d40bc18a7a4b5d3ac136e /fs/ecryptfs/inode.c | |
parent | f2fs: it's umode_t, not mode_t... (diff) | |
download | linux-0e81ba231239b58c8b17dca18c6345c13e793824.tar.xz linux-0e81ba231239b58c8b17dca18c6345c13e793824.zip |
don't opencode iget_failed()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ecryptfs/inode.c')
-rw-r--r-- | fs/ecryptfs/inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index e2e47ba5d313..92c5dae576b1 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -282,9 +282,7 @@ ecryptfs_create(struct inode *directory_inode, struct dentry *ecryptfs_dentry, if (rc) { ecryptfs_do_unlink(directory_inode, ecryptfs_dentry, ecryptfs_inode); - make_bad_inode(ecryptfs_inode); - unlock_new_inode(ecryptfs_inode); - iput(ecryptfs_inode); + iget_failed(ecryptfs_inode); goto out; } unlock_new_inode(ecryptfs_inode); |