diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 1539052338b9..5dc856b66714 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1185,7 +1185,7 @@ default_check: /* Not pass down write hints if the number of active logs is lesser * than NR_CURSEG_PERSIST_TYPE. */ - if (F2FS_OPTION(sbi).active_logs != NR_CURSEG_TYPE) + if (F2FS_OPTION(sbi).active_logs != NR_CURSEG_PERSIST_TYPE) F2FS_OPTION(sbi).whint_mode = WHINT_MODE_OFF; if (f2fs_sb_has_readonly(sbi) && !f2fs_readonly(sbi->sb)) {