diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-16 18:22:50 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-08-03 22:03:30 +0200 |
commit | dd54992776ebb44519ba4cd69145c4f19d166ddb (patch) | |
tree | df63e8fc13515e6531d103b459d76672c340abdd /fs/ufs/ialloc.c | |
parent | btrfs: switch to discard_new_inode() (diff) | |
download | linux-dd54992776ebb44519ba4cd69145c4f19d166ddb.tar.xz linux-dd54992776ebb44519ba4cd69145c4f19d166ddb.zip |
ufs: switch to discard_new_inode()
we don't want open-by-handle to pick an in-core inode that
has failed setup halfway through.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs/ialloc.c')
-rw-r--r-- | fs/ufs/ialloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ufs/ialloc.c b/fs/ufs/ialloc.c index e1ef0f0a1353..02c0a4be4212 100644 --- a/fs/ufs/ialloc.c +++ b/fs/ufs/ialloc.c @@ -343,8 +343,7 @@ cg_found: fail_remove_inode: mutex_unlock(&sbi->s_lock); clear_nlink(inode); - unlock_new_inode(inode); - iput(inode); + discard_new_inode(inode); UFSD("EXIT (FAILED): err %d\n", err); return ERR_PTR(err); failed: |