UPSTREAM: f2fs: compress: fix error path of inc_valid_block_count()
If inc_valid_block_count() can not allocate all requested blocks, it needs to release block count in .total_valid_block_count and resevation blocks in inode. Bug: 419862398 Change-Id: I3d05f5ced5a8e9e4af6879d8e35ef9aef148dd95 (cherry picked from commit 043c8323) Fixes: 54607494 ("f2fs: compress: fix to avoid inconsistence bewteen i_blocks and dnode") Signed-off-by:Chao Yu <chao@kernel.org> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by:
Chao Yu <chao@kernel.org>
Loading
Please sign in to comment