f2fs: fix incorrect error path handling in f2fs_move_rehashed_dirents
authorChao Yu <yuchao0@huawei.com>
Sat, 14 May 2016 11:03:53 +0000 (19:03 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 16 May 2016 22:32:01 +0000 (15:32 -0700)
commit8975bdf48220cca703ad4586528e04b76b40ea1c
tree64ef3ff33c927c0c8365e03f15847f9fe4101b65
parente4103849ba784368e802eec4f15832ac54eb7d39
f2fs: fix incorrect error path handling in f2fs_move_rehashed_dirents

Fix two bugs in error path of f2fs_move_rehashed_dirents:
 - release dir's inode page if fail to call kmalloc
 - recover i_current_depth if fail to converting

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/inline.c