aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2022-11-01 16:15:41 +0000
committerDavid Sterba <[email protected]>2022-12-05 18:00:49 +0100
commit61ce908a3c260fbe37826a6cbd56636abeffcd28 (patch)
tree4c6cd6f7c7cd093d977f57f99f291eb2fa506836 /tools/perf/scripts/python
parent1a1a285139707f2430b3833103e152f07c66e63e (diff)
btrfs: send: avoid unnecessary path allocations when finding extent clone
When looking for an extent clone, at find_extent_clone(), we start by allocating a path and then check for cases where we can't have clones and exit immediately in those cases. It's a waste of time to allocate the path before those cases, so reorder the logic so that we check for those cases before allocating the path. Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions