f2fs: clear FI_HOT_DATA correctly
authorChao Yu <yuchao0@huawei.com>
Fri, 18 Aug 2017 15:37:36 +0000 (23:37 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 29 Aug 2017 17:02:56 +0000 (10:02 -0700)
commit84a23fbe96b4e307eb749046a74515329119b08d
tree8890e38b3437b75d4e3a24c3146abe07e85592ef
parent6f890df0a7efe3181aceb5d8bcd4af7deb2abce5
f2fs: clear FI_HOT_DATA correctly

This patch fixes to clear FI_HOT_DATA correctly in below path:
- error handling in f2fs_ioc_start_atomic_write
- after commit atomic write in f2fs_ioc_commit_atomic_write
- after drop atomic write in drop_inmem_pages

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