summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-04-09 18:15:03 +0100
committerDavid Sterba <dsterba@suse.com>2025-05-15 14:30:51 +0200
commitf2a24bef553891d91d3ae1745b748cdf5cc58145 (patch)
tree70bb6eb61d5c886f11fa9b6b7b37a9f90b51f3b4 /tools/perf/scripts/python
parent6c28102f9ac4eea321e5421c248ca17983a9760d (diff)
btrfs: simplify last record detection at btrfs_clear_extent_bit_changeset()
Instead of checking for an end offset of (u64)-1 (U64_MAX) for the current extent state's end, and then checking after updating the current start offset if it's now beyond the range's end offset, we can simply stop if the current extent state's end is greater than or equals to our range's end offset. This helps remove one comparison under the 'next' label and allows to remove the if statement that checks if the start offset is greater than the end offset under the 'search_again' label. 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')
0 files changed, 0 insertions, 0 deletions