Commit 043c832
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.
Fixes: 5460749 ("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>1 parent a3a0bc6 commit 043c832
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2306 | 2306 | | |
2307 | 2307 | | |
2308 | 2308 | | |
2309 | | - | |
| 2309 | + | |
2310 | 2310 | | |
2311 | 2311 | | |
2312 | 2312 | | |
| |||
2326 | 2326 | | |
2327 | 2327 | | |
2328 | 2328 | | |
2329 | | - | |
2330 | | - | |
2331 | 2329 | | |
2332 | | - | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
2333 | 2334 | | |
2334 | 2335 | | |
| 2336 | + | |
2335 | 2337 | | |
2336 | 2338 | | |
2337 | | - | |
2338 | | - | |
2339 | 2339 | | |
2340 | 2340 | | |
2341 | 2341 | | |
2342 | 2342 | | |
2343 | | - | |
2344 | 2343 | | |
2345 | 2344 | | |
2346 | 2345 | | |
2347 | 2346 | | |
2348 | 2347 | | |
| 2348 | + | |
| 2349 | + | |
2349 | 2350 | | |
2350 | 2351 | | |
2351 | 2352 | | |
| |||
0 commit comments