f2fs: don't put new_page twice in f2fs_rename
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 11 Dec 2019 23:10:47 +0000 (15:10 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 15 Jan 2020 21:43:49 +0000 (13:43 -0800)
commit762e4db5450a666bcf5144ffeb0b2e582ba67ff8
treea12082f80acd0273a0947cfd280f54b2218eb4e4
parent5b1dbb082f196278f82b6a15a13848efacb9ff11
f2fs: don't put new_page twice in f2fs_rename

In f2fs_rename(), new_page is gone after f2fs_set_link(), but it tries
to put again when whiteout is failed and jumped to put_out_dir.

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