mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
f2fs: fix the wrong f2fs_bug_on condition in f2fs_do_replace_block
[ Upstream commitc3af1f1347] This f2fs_bug_on was introduced by commit2c1905042c("f2fs: check segment type in __f2fs_replace_block") when there were only 6 curseg types. After commitd0b9e42ab6("f2fs: introduce inmem curseg") was introduced, the condition should be changed to checking curseg->seg_type. Fixes:d0b9e42ab6("f2fs: introduce inmem curseg") Signed-off-by: LongPing Wei <weilongping@oppo.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
b5cf7ba111
commit
3fd2fc9282
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue