[f2fs-dev] [PATCH] f2fs: fix whint_mode mount option error

2021-09-26 Thread Fengnan Chang via Linux-f2fs-devel
When mount with whint_mode option, it doesn't work, Fix it. Fixes: d0b9e42ab615 (f2fs: introduce inmem curseg) Reported-by: tanghuan Signed-off-by: Fengnan Chang --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 78ebc

[f2fs-dev] [PATCH] f2fs: fix to use WHINT_MODE

2021-09-26 Thread Keoseong Park
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 Signed-off-by: Keoseong Park --- fs/f2fs/super.c | 2 +-