aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-04-17 13:03:42 +0100
committerDavid Sterba <dsterba@suse.com>2025-05-15 14:30:52 +0200
commitaa2c80a9ae279578acbb5f5674e7345199d8173b (patch)
tree6ffee922d3a7a426e749f2b5caaff6b1da9fac17 /tools/perf/scripts/python/export-to-postgresql.py
parentbtrfs: avoid repeated extent state processing when setting extent bits (diff)
downloadlinux-rng-aa2c80a9ae279578acbb5f5674e7345199d8173b.tar.xz
linux-rng-aa2c80a9ae279578acbb5f5674e7345199d8173b.zip
btrfs: avoid re-searching tree when setting bits in an extent range
When setting bits for an extent range (set_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