OSDN Git Service

f2fs: allocate hot_data for atomic write more strictly
authorYunlei He <heyunlei@huawei.com>
Wed, 18 Apr 2018 03:06:39 +0000 (11:06 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 9 Jul 2018 00:28:38 +0000 (17:28 -0700)
commit258489ec52208c6cc9893f3ce2791cc9d9fbb04b
tree71f28b63613878f2c241bcc5fdeac983caa5364e
parentaa857e0f3b0993899e39659b2f671e8cc9870ac3
f2fs: allocate hot_data for atomic write more strictly

If a file not set type as hot, has dirty pages more than
threshold 64 before starting atomic write, may be lose hot
flag.

v1->v2: move set FI_ATOMIC_FILE flag behind flush dirty pages too,
in case of dirty pages before starting atomic use atomic mode to
write back.

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