summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>2026-09-11 13:41:12 +0200
committerDavid Sterba <dsterba@suse.com>2026-11-09 18:50:57 +0100
commita22acd489f3e882805c3a47d0f75a29704db5411 (patch)
tree19edc278f478c371d220e0dcfe1e1eb2e39710f7 /tools/perf/scripts/python/task-analyzer.py
parentc5f878eefdd4f559422a68bf49b6f59e7c10e70e (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/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions