diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-10-02 19:44:02 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-10-12 19:16:24 +0200 |
| commit | 9685445df748a7a33edb6b121350fae4af09c681 (patch) | |
| tree | 51c40e2792e68d4be77b27aaad05c16d8f133f68 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 599fdbf3e309e0e6227c67629a520c98059e2fff (diff) | |
| download | linux-9685445df748a7a33edb6b121350fae4af09c681.tar.gz linux-9685445df748a7a33edb6b121350fae4af09c681.zip | |
btrfs: qgroup: fix off-by-one max level check in qgroup_trace_new_subtree_blocks()
We have maximum of 8 (BTRFS_MAX_LEVEL) levels in a btree, going from 0 to
7, so the upper bound checks should be:
>= BTRFS_MAX_LEVEL
and not:
>= BTRFS_MAX_LEVEL - 1
In practice this will hardly ever be a problem since having a btree with
8 levels would imply a massively huge fs.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
