f2fs: avoid to use failed inode immediately
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Jun 2015 17:36:08 +0000 (10:36 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Aug 2015 21:09:53 +0000 (14:09 -0700)
commitc9b63bd01dd8da096d079c490771ad8a049fd480
treeb6fda13486d2aec3011a7ceafa3755304eda6ec1
parenteca616f8c1d6c581f3785f0ee3e2a3887e084273
f2fs: avoid to use failed inode immediately

Before iput is called, the inode number used by a bad inode can be reassigned
to other new inode, resulting in any abnormal behaviors on the new inode.
This should not happen for the new inode.

Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/inode.c
fs/f2fs/namei.c