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, 28 Jun 2018 22:49:24 +0000 (15:49 -0700)
commitf0b5d76682cdbe83786602e1dd33b8140d313769
tree05245859b1d420122e7b876fa7b52c29a289e3ec
parent50644840d86036c025de4cebe1bbb508e569436b
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