Commit ed493d61 authored by Fengnan Chang's avatar Fengnan Chang Committed by Jaegeuk Kim
Browse files

FROMGIT: 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.

Bug: 202812742
Cc: Chao Yu <chao@kernel.org>
Fixes: d0b9e42a (f2fs: introduce inmem curseg)
Reported-by: default avatartanghuan <tanghuan@vivo.com>
Signed-off-by: default avatarKeoseong Park <keosung.park@samsung.com>
Signed-off-by: default avatarFengnan Chang <changfengnan@vivo.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 011e0868
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/

 dev)

Change-Id: Ic2a2b055e1f37f6263d8243527e83fe6bd4f7070
Signed-off-by: default avatarFengnan Chang <changfengnan@vivo.com>
parent 400df946
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment