aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-04-16 16:18:10 +0100
committerDavid Sterba <dsterba@suse.com>2025-05-15 14:30:51 +0200
commit0edc1a5c543c024934e7418aa76d2e8309e0303f (patch)
treefd3e04d1f91d7d4c07a2c3e274fb5919bbb7136a /tools/perf/scripts/python/export-to-postgresql.py
parentbtrfs: avoid re-searching tree when converting bits in an extent range (diff)
downloadlinux-rng-0edc1a5c543c024934e7418aa76d2e8309e0303f.tar.xz
linux-rng-0edc1a5c543c024934e7418aa76d2e8309e0303f.zip
btrfs: simplify last record detection at btrfs_convert_extent_bit()
There's no need to compare the current extent state's end offset to (u64)-1 to check if we have the last possible record and to check as as well if after updating the start offset to the end offset of the current record plus one we are still inside the target range. Instead we can simplify and exit if the current extent state ends at or after the target range and then remove the check for the (u64)-1 as well as the check to see if the updated start offset (to last_end + 1) is still inside the target range. 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