diff options
author | Gerhard Heift <[email protected]> | 2014-01-30 16:23:57 +0100 |
---|---|---|
committer | Chris Mason <[email protected]> | 2014-06-12 18:20:39 -0700 |
commit | 25c9bc2e2bc9d67de7fc49ff2784cae5de755192 (patch) | |
tree | fe51f95796bd4e6126c70bcc48e01ed08add3f57 /tools/perf/util/trace-event-scripting.c | |
parent | c7548af69d9ef71512eb52d8009521eba3e768fd (diff) |
btrfs: tree_search: eliminate redundant nr_items check
If the amount of items reached the given limit of nr_items, we can leave
copy_to_sk without updating the key. Also by returning 1 we leave the loop in
search_ioctl without rechecking if we reached the given limit.
Signed-off-by: Gerhard Heift <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Acked-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions