diff options
author | 2025-04-16 15:43:25 +0100 | |
---|---|---|
committer | 2025-05-15 14:30:51 +0200 | |
commit | be2270262fa732660b3b568175701cd732eda1da (patch) | |
tree | 9fbd4ebbe5ad669bbecf639e8c2d9edf90bcc8f8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: avoid repeated extent state processing when converting extent bits (diff) | |
download | linux-rng-be2270262fa732660b3b568175701cd732eda1da.tar.xz linux-rng-be2270262fa732660b3b568175701cd732eda1da.zip |
btrfs: avoid re-searching tree when converting bits in an extent range
When converting bits for an extent range (btrfs_convert_extent_bit()), if
the current extent state record starts after the target range, we always
do a jump to the 'search_again' label, which will cause us to do a full
tree search for the next state if the current state ends before the target
range. Unless we need to reschedule, we can just grab the next state and
process it, avoiding a full tree search, even if that next state is not
contiguous, as we'll allocate and insert a new prealloc state if needed.
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions