Commit 8c157dd
f2fs: fix incomplete block usage in compact SSA summaries
commit 91b76f1 upstream.
In a previous commit, a bug was introduced where compact SSA summaries
failed to utilize the entire block space in non-4KB block size
configurations, leading to inefficient space management.
This patch fixes the calculation logic to ensure that compact SSA
summaries can fully occupy the block regardless of the block size.
Reported-by: Chris Mason <clm@meta.com>
Fixes: e48e16f ("f2fs: support non-4KB block size without packed_ssa feature")
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit df337ba02ca53ca9cfcefc1ed7ca38424daa52a0)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent 57fa5bc commit 8c157dd
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2689 | 2689 | | |
2690 | 2690 | | |
2691 | 2691 | | |
2692 | | - | |
| 2692 | + | |
2693 | 2693 | | |
2694 | 2694 | | |
2695 | 2695 | | |
2696 | 2696 | | |
2697 | | - | |
| 2697 | + | |
2698 | 2698 | | |
2699 | 2699 | | |
2700 | 2700 | | |
| |||
4337 | 4337 | | |
4338 | 4338 | | |
4339 | 4339 | | |
4340 | | - | |
| 4340 | + | |
4341 | 4341 | | |
4342 | 4342 | | |
4343 | 4343 | | |
| |||
4510 | 4510 | | |
4511 | 4511 | | |
4512 | 4512 | | |
4513 | | - | |
| 4513 | + | |
4514 | 4514 | | |
4515 | 4515 | | |
4516 | 4516 | | |
| |||
0 commit comments