aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2023-04-05 17:52:23 +0000
committerDavid Sterba <[email protected]>2023-04-17 17:52:19 +0000
commit524f14bb114a20d9b3d8db25f93b532d4207fcac (patch)
tree15a76b2ca1e18a4f5718a5db09596f4031e5fed2 /tools/perf/scripts/python/check-perf-trace.py
parentbtrfs: scrub: reject unsupported scrub flags (diff)
downloadkernel-524f14bb114a20d9b3d8db25f93b532d4207fcac.tar.gz
kernel-524f14bb114a20d9b3d8db25f93b532d4207fcac.zip
btrfs: remove pointless loop at btrfs_get_next_valid_item()
It's pointless to have a while loop at btrfs_get_next_valid_item(), as if the slot on the current leaf is beyond the last item, we call btrfs_next_leaf(), which leaves us at a valid slot of the next leaf (or a valid slot in the current leaf if after releasing the path an item gets pushed from the next leaf to the current leaf). So just call btrfs_next_leaf() if the current slot on the current leaf is beyond the last item. Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions