Commit b3af89c2 authored by Chao Yu's avatar Chao Yu Committed by Paul Lawrence
Browse files

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: Ib2c432b6e6b72715d0f73b9e6acdaf1242db8951
Fixes: 54607494 ("f2fs: compress: fix to avoid inconsistence bewteen i_blocks and dnode")
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 043c8323)
Signed-off-by: default avatarChao Yu <chao@kernel.org>
parent 8d89d899
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment