Commit 186e7d7
f2fs: compress: fix to update i_compr_blocks correctly
Previously, we account reserved blocks and compressed blocks into
@compr_blocks, then, f2fs_i_compr_blocks_update(,compr_blocks) will
update i_compr_blocks incorrectly, fix it.
Meanwhile, for the case all blocks in cluster were reserved, fix to
update dn->ofs_in_node correctly.
Fixes: eb8fbaa ("f2fs: compress: fix to check unreleased compressed cluster")
Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>1 parent 4ed886b commit 186e7d7
1 file changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3666 | 3666 | | |
3667 | 3667 | | |
3668 | 3668 | | |
3669 | | - | |
| 3669 | + | |
| 3670 | + | |
3670 | 3671 | | |
3671 | 3672 | | |
3672 | 3673 | | |
| |||
3686 | 3687 | | |
3687 | 3688 | | |
3688 | 3689 | | |
3689 | | - | |
3690 | | - | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
3691 | 3695 | | |
3692 | 3696 | | |
3693 | 3697 | | |
3694 | 3698 | | |
3695 | 3699 | | |
3696 | | - | |
| 3700 | + | |
3697 | 3701 | | |
3698 | 3702 | | |
3699 | | - | |
| 3703 | + | |
| 3704 | + | |
3700 | 3705 | | |
| 3706 | + | |
3701 | 3707 | | |
3702 | | - | |
| 3708 | + | |
| 3709 | + | |
3703 | 3710 | | |
3704 | 3711 | | |
3705 | 3712 | | |
| |||
3710 | 3717 | | |
3711 | 3718 | | |
3712 | 3719 | | |
3713 | | - | |
| 3720 | + | |
3714 | 3721 | | |
3715 | 3722 | | |
3716 | 3723 | | |
| |||
0 commit comments