Commit 4916d6f0 authored by LongPing Wei's avatar LongPing Wei Committed by Treehugger Robot
Browse files

UPSTREAM: f2fs: fix the wrong f2fs_bug_on condition in f2fs_do_replace_block



This f2fs_bug_on was introduced by commit 2c190504 ("f2fs: check
segment type in __f2fs_replace_block") when there were only 6 curseg types.
After commit d0b9e42a ("f2fs: introduce inmem curseg") was introduced,
the condition should be changed to checking curseg->seg_type.

Fixes: d0b9e42a ("f2fs: introduce inmem curseg")
Change-Id: Id8c382cbd7eb5f86440d79017638c47627501ae8
Signed-off-by: default avatarLongPing Wei <weilongping@oppo.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit c3af1f13)
parent e3bafd6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment