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 Bug: 308706939 Cc: Daeho Jeong <daehojeong@google.com> Fixes: 3db1de0e ("f2fs: change the current atomic write way") Change-Id: I04f40df19714a91cc0bfb276d6cddbed430e2229 Signed-off-by:Chao Yu <chao@kernel.org> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org> (cherry picked from commit 9f452207) Signed-off-by:
zhoudan8 <zhoudan8@xiaomi.com>
Loading
Please sign in to comment