aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-04-16 15:24:48 +0100
committerDavid Sterba <dsterba@suse.com>2025-05-15 14:30:51 +0200
commit240dd0e1bbe57fdcaaf7aede4b35d47ebf32dd48 (patch)
tree759a6ae9446eaa1330d00e818218a556a6e2b652 /tools/perf/scripts/python/export-to-postgresql.py
parentbtrfs: exit after state insertion failure at btrfs_convert_extent_bit() (diff)
downloadlinux-rng-240dd0e1bbe57fdcaaf7aede4b35d47ebf32dd48.tar.xz
linux-rng-240dd0e1bbe57fdcaaf7aede4b35d47ebf32dd48.zip
btrfs: avoid unnecessary next node searches when clearing bits from extent range
When clearing bits for a range in an io tree, at clear_state_bit(), we always go search for the next node (through next_state() -> rb_next()) and return it. However if the current extent state record ends at or after the target range passed to btrfs_clear_extent_bit_changeset() or btrfs_convert_extent_bit(), we are just wasting time finding that next node since we won't use it in those functions. Improve on this by skipping the next node search if the current node ends at or after the target range. Reviewed-by: Boris Burkov <boris@bur.io> 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