f2fs: fix to avoid unneeded unlock_new_inode
authorChao Yu <chao@kernel.org>
Thu, 10 Mar 2016 14:24:23 +0000 (22:24 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 18 Mar 2016 04:19:46 +0000 (21:19 -0700)
commitd726732c7ce951da5468b577a89ac26ce3f5a860
tree51d1cc310d3daef91d8c4671fdcd98e93db2a223
parent291bf80becdfbb4cfc726dbd1811b28cedb4d907
f2fs: fix to avoid unneeded unlock_new_inode

During ->lookup, I_NEW state of inode was been cleared in f2fs_iget,
so in error path, we don't need to clear it again.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c