diff options
| author | Guanghui Yang <3497809730@qq.com> | 2026-07-14 17:55:43 +0800 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-07-21 06:42:40 +0200 |
| commit | 8bc4d7209611e8aa9d5409b6a4a86a9eb91b69a3 (patch) | |
| tree | 6740238a70c0475cf093511897b72ee8caf4f381 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 330dcc553f282e8dc0b88c9495b4c296465364e1 (diff) | |
btrfs: zoned: fix missing chunk metadata reservation
reserve_chunk_space() stores the return value of
btrfs_zoned_activate_one_bg() in ret. The helper can return 1 after
successfully activating a block group, but ret is later used to decide
whether to reserve metadata for chunk tree updates.
As a result, successful activation skips btrfs_block_rsv_add() and leaves
trans->chunk_bytes_reserved unchanged. Use a separate variable for the
activation result so positive success does not affect the later
reservation. Keep activation failures in ret instead of returning early so
the function uses the common tail path.
Fixes: b6a98021e401 ("btrfs: zoned: activate necessary block group")
CC: stable@vger.kernel.org
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Guanghui Yang <3497809730@qq.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
