diff options
| author | Naohiro Aota <naohiro.aota@wdc.com> | 2025-09-12 15:43:21 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-24 10:37:47 +0100 |
| commit | 8ab9bf9ec20b0bb1bf4235a9dfa7a6a06a21a924 (patch) | |
| tree | 6583c33b9c05f91781f978daa5f9ab6bdc4d6e94 /include/net/aligned_data.h | |
| parent | ee80ff1f10e189dbe50b137e0bbd764382261f77 (diff) | |
btrfs: zoned: fix conventional zone capacity calculation
commit 94f54924b96d3565c6b559294b3401b5496c21ac upstream.
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: 568220fa9657 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
