Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information