aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2024-06-03 17:02:26 +0100
committerDavid Sterba <[email protected]>2024-07-11 15:33:23 +0200
commitcb3cd62454eab7ebf833aeb04ca7458c656d30cf (patch)
tree0e76d259febe86e99671b1834036f58d57a668e2 /tools/perf/scripts/python/flamegraph.py
parentc18ca3c960171e0fb22e498dbf233e0cc521a31c (diff)
btrfs: avoid removal and re-insertion of split ordered extent
At btrfs_split_ordered_extent(), we are removing and re-inserting the ordered extent that we are trimming, but we don't need to since the trimming doesn't change its position in the red black tree because we don't have overlapping ordered extents (that would imply double allocation of extents) and we know the split length is smaller than the ordered extent's num_bytes field (we checked that early in the function). So drop the remove and re-insert code for the slit ordered extent. Reviewed-by: Josef Bacik <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions