commit | 25c9bc2e2bc9d67de7fc49ff2784cae5de755192 | [log] [tgz] |
---|---|---|
author | Gerhard Heift <gerhard@heift.name> | Thu Jan 30 16:23:57 2014 +0100 |
committer | Chris Mason <clm@fb.com> | Thu Jun 12 18:20:39 2014 -0700 |
tree | fe51f95796bd4e6126c70bcc48e01ed08add3f57 | |
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 <Gerhard@Heift.Name> Signed-off-by: Chris Mason <clm@fb.com> Acked-by: David Sterba <dsterba@suse.cz>