Commit 31a6086
btrfs: zoned: fix conventional zone capacity calculation
When a block group contains both conventional zone and sequential zone, the
capacity of the block group is wrongly set to the block group's full
length. The capacity should be calculated in btrfs_load_block_group_* using
the last allocation offset.
Fixes: 568220f ("btrfs: zoned: support RAID0/1/10 on top of raid stripe tree")
CC: stable@vger.kernel.org # v6.12+
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent a3d0b51 commit 31a6086
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1317 | 1317 | | |
1318 | 1318 | | |
1319 | 1319 | | |
| 1320 | + | |
1320 | 1321 | | |
1321 | 1322 | | |
1322 | 1323 | | |
| |||
1683 | 1684 | | |
1684 | 1685 | | |
1685 | 1686 | | |
1686 | | - | |
1687 | | - | |
1688 | 1687 | | |
1689 | 1688 | | |
1690 | 1689 | | |
| |||
1693 | 1692 | | |
1694 | 1693 | | |
1695 | 1694 | | |
| 1695 | + | |
1696 | 1696 | | |
1697 | 1697 | | |
1698 | 1698 | | |
| |||
0 commit comments