f2fs: fix to avoid allocating WARM_DATA segment for direct IO
authorChao Yu <chao@kernel.org>
Fri, 26 Apr 2024 09:33:48 +0000 (17:33 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 29 Apr 2024 17:41:17 +0000 (17:41 +0000)
commita320b2f08b3b26fff0a71777f018553fc1e6873e
tree3483c9b7dc609570d9cc62be4da2d331a21e5006
parentecd69be71aad3b9299b37b3d8cc3f0fb6016286f
f2fs: fix to avoid allocating WARM_DATA segment for direct IO

If active_log is not 6, we never use WARM_DATA segment, let's
avoid allocating WARM_DATA segment for direct IO.

Signed-off-by: Yunlei He <heyunlei@oppo.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/segment.c