diff options
| author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2026-09-11 13:41:12 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-11-09 18:50:57 +0100 |
| commit | a22acd489f3e882805c3a47d0f75a29704db5411 (patch) | |
| tree | 19edc278f478c371d220e0dcfe1e1eb2e39710f7 /tools/perf/scripts/python/flamegraph.py | |
| parent | c5f878eefdd4f559422a68bf49b6f59e7c10e70e (diff) | |
btrfs: zoned: avoid underflow of space info bytes_zone_unusable
The two functions btrfs_free_reserved_bytes() and
btrfs_reset_unused_block_groups() both manipulate
space_info->bytes_zone_unusable without using the accessor function
btrfs_space_info_update_bytes_zone_unusable() potentially risking an
underflow (in case of btrfs_reset_unused_block_groups()).
Use btrfs_space_info_update_bytes_zone_unusable() in both function, in
the case of btrfs_free_reserved_bytes() it is mostly for documenting
purposes.
Reviewed-by: Daniel Vacek <neelx@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
