f2fs: fix error path of move_data_page
authorChao Yu <yuchao0@huawei.com>
Mon, 28 May 2018 08:59:27 +0000 (16:59 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 9 Jul 2018 00:40:58 +0000 (17:40 -0700)
commit46df5fe2bad44e9d3c7f8ae40613992f65be64b4
tree57729e6ddd726e921ee290eb37100bc99ee4ab3b
parent1b8f49aeb0e4f7cd297c0032c497010b282b9180
f2fs: fix error path of move_data_page

This patch fixes error path of move_data_page:
- clear cold data flag if it fails to write page.
- redirty page for non-ENOMEM case.

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