diff options
author | Gerhard Heift <gerhard@heift.name> | 2014-01-30 16:23:57 +0100 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-12 18:20:39 -0700 |
commit | 25c9bc2e2bc9d67de7fc49ff2784cae5de755192 (patch) | |
tree | fe51f95796bd4e6126c70bcc48e01ed08add3f57 /fs/readdir.c | |
parent | c7548af69d9ef71512eb52d8009521eba3e768fd (diff) | |
download | linux-25c9bc2e2bc9d67de7fc49ff2784cae5de755192.tar.bz2 |
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>
Diffstat (limited to 'fs/readdir.c')
0 files changed, 0 insertions, 0 deletions