]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: allow generic_bin_search() to take low boundary as an argument
authorFilipe Manana <fdmanana@suse.com>
Thu, 2 Dec 2021 10:30:35 +0000 (10:30 +0000)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:23 +0000 (14:18 +0100)
commit2845abcb2d845fa7ca4cde487532efee673f7873
tree50e55a3067584d6b8db9c7163a6110db770126d1
parentf6834bb5004d3687862f8f8b268f8e6d9e621a55
btrfs: allow generic_bin_search() to take low boundary as an argument

Right now generic_bin_search() always uses a low boundary slot of 0, but
in the next patch we'll want to often skip slot 0 when searching for a
key. So make generic_bin_search() have the low boundary slot specified
as an argument, and move the check for the extent buffer level from
btrfs_bin_search() to generic_bin_search() to avoid adding another
wrapper around generic_bin_search().

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c