Skip to content

Commit 011e086

Browse files
keosungJaegeuk Kim
authored andcommitted
f2fs: fix to use WHINT_MODE
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 <[email protected]> Fixes: d0b9e42 (f2fs: introduce inmem curseg) Reported-by: tanghuan <[email protected]> Signed-off-by: Keoseong Park <[email protected]> Signed-off-by: Fengnan Chang <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 70a9ac3 commit 011e086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
12921292
/* Not pass down write hints if the number of active logs is lesser
12931293
* than NR_CURSEG_PERSIST_TYPE.
12941294
*/
1295-
if (F2FS_OPTION(sbi).active_logs != NR_CURSEG_TYPE)
1295+
if (F2FS_OPTION(sbi).active_logs != NR_CURSEG_PERSIST_TYPE)
12961296
F2FS_OPTION(sbi).whint_mode = WHINT_MODE_OFF;
12971297

12981298
if (f2fs_sb_has_readonly(sbi) && !f2fs_readonly(sbi->sb)) {

0 commit comments

Comments
 (0)