f2fs: treat volatile file's data as hot one
authorChao Yu <yuchao0@huawei.com>
Thu, 26 Apr 2018 09:05:50 +0000 (17:05 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 31 May 2018 18:31:49 +0000 (11:31 -0700)
commitb4c3ca8ba9a447ea5d1b3dd1082f112c8dda3562
tree73309edfcc8c5e7ccb460dc5faefb1cc3b4a679e
parentaf8ff65bb85df39159944811a241f0dd827f0d76
f2fs: treat volatile file's data as hot one

Volatile file's data will be updated oftenly, so it'd better to place
its data into hot data segment.

In addition, for atomic file, we change to check FI_ATOMIC_FILE instead
of FI_HOT_DATA to make code readability better.

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