Commit 31376293 authored by Chao Yu's avatar Chao Yu Committed by Daniel Rosenberg
Browse files

BACKPORT: f2fs: fix to check return value of inc_valid_block_count()



In __replace_atomic_write_block(), we missed to check return value
of inc_valid_block_count(), for extreme testcase that f2fs image is
run out of space, it may cause inconsistent status in between SIT
table and total valid block count.

Bug: 298879042
Cc: Daeho Jeong <daehojeong@google.com>
Fixes: 3db1de0e ("f2fs: change the current atomic write way")
Change-Id: I04f40df19714a91cc0bfb276d6cddbed430e2229
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 9f452207)
Signed-off-by: default avatarzhoudan8 <zhoudan8@xiaomi.com>
parent 2dfe6648
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment