diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 65dcde1d4fb83fac6f8a7c06bfc6f0cedd0f004c..0b6827dba25ea10d5d16a6b1aee25c20a14c6339 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -2720,8 +2720,8 @@ static int __get_segment_type_6(struct f2fs_io_info *fio) return CURSEG_COLD_DATA; if (file_is_hot(inode) || is_inode_flag_set(inode, FI_HOT_DATA) || - is_inode_flag_set(inode, FI_ATOMIC_FILE) || - is_inode_flag_set(inode, FI_VOLATILE_FILE)) + f2fs_is_atomic_file(inode) || + f2fs_is_volatile_file(inode)) return CURSEG_HOT_DATA; return f2fs_rw_hint_to_seg_type(inode->i_write_hint); } else {