summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2026-07-28 12:09:26 +0930
committerDavid Sterba <dsterba@suse.com>2026-08-07 19:17:18 +0200
commit9102b179512e11644fb0489ae62010a09afa199c (patch)
tree8151ec4b621b10985799e3a0a40144a96567dedc /tools/perf/scripts/python/syscall-counts.py
parente0e6df7294101e22381e5b351f1e42f511327758 (diff)
btrfs: qgroup: fix a wrong length calculation in qgroup_free_reserved_data()
In that function, we round down the start position and round up the ending position. But during the calculation of @len, we use "round_up(start + len, sectorsize)", which is the rounded up end position, not the rounded up length. Which results a much larger length, and later we are still using "start + len", which is completely incorrect. Fix it by declaring a local @aligned_start and @aligned_len and use them instead. Fixes: bc42bda22345 ("btrfs: qgroup: Fix qgroup reserved space underflow by only freeing reserved ranges") Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions