btrfs: remove search start argument from first_logical_byte()
authorFilipe Manana <fdmanana@suse.com>
Wed, 13 Apr 2022 15:20:39 +0000 (16:20 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:13 +0000 (17:03 +0200)
commit0eb997bff001ef53cd4d920762d0ed753b36fecd
tree889fee486de6ec072587ab3d80692ea72274eae4
parent44e5801fada6925d2bba1987c7b59cbcc9d0d592
btrfs: remove search start argument from first_logical_byte()

The search start argument passed to first_logical_byte() is always 0, as
we always want to get the logical start address of the block group with
the lowest logical start address. So remove it, as not only it is not
necessary, it also makes the following patches that change the lock that
protects the red black tree of block groups from a spin lock to a
read/write lock.

Reviewed-by: Nikolay Borisov <nborisov@suse.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/extent-tree.c