Skip to content

Commit 3d7c5d0

Browse files
keosunggregkh
authored andcommitted
f2fs: fix to use WHINT_MODE
[ Upstream commit 011e086 ] Since active_logs can be set to 2 or 4 or NR_CURSEG_PERSIST_TYPE(6), it cannot be set to NR_CURSEG_TYPE(8). That is, whint_mode is always off. Therefore, the condition is changed from NR_CURSEG_TYPE to NR_CURSEG_PERSIST_TYPE. Cc: Chao Yu <chao@kernel.org> Fixes: d0b9e42 (f2fs: introduce inmem curseg) Reported-by: tanghuan <tanghuan@vivo.com> Signed-off-by: Keoseong Park <keosung.park@samsung.com> Signed-off-by: Fengnan Chang <changfengnan@vivo.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent e8bd5e3 commit 3d7c5d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/f2fs/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
10201020
/* Not pass down write hints if the number of active logs is lesser
10211021
* than NR_CURSEG_PERSIST_TYPE.
10221022
*/
1023-
if (F2FS_OPTION(sbi).active_logs != NR_CURSEG_TYPE)
1023+
if (F2FS_OPTION(sbi).active_logs != NR_CURSEG_PERSIST_TYPE)
10241024
F2FS_OPTION(sbi).whint_mode = WHINT_MODE_OFF;
10251025
return 0;
10261026
}

0 commit comments

Comments
 (0)