diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-10-07 16:08:50 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-10-12 19:16:25 +0200 |
| commit | eb55bc2bfe204e6bfccfe179226d7fb5024cb010 (patch) | |
| tree | 817891f703640cda441b219f475a02878406f7d7 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 04136cd21c64cc7036d768e92a781347bb425d25 (diff) | |
| download | linux-eb55bc2bfe204e6bfccfe179226d7fb5024cb010.tar.gz linux-eb55bc2bfe204e6bfccfe179226d7fb5024cb010.zip | |
btrfs: defrag: fix check to see if next extent can be defragged too
We want to check if the next extent is at maximum capacity but we are
passing the current extent map to get_extent_max_capacity() and not
the next extent map. For example if the current extent is compressed (its
maximum capacity is 128K) and the next extent is uncompressed (its
maximum capacity is 128M), then we can bail out and not defrag the next
extent too - when for example the next extent as a size of 128K, is
uncompressed, and the extent threshold is >= 256K.
Fixes: 979b25c300db ("btrfs: defrag: don't defrag extents which are already at max capacity")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.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
