]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6f9d88923c13039890c9bc0a46da7602a26d6a2
tree889fee486de6ec072587ab3d80692ea72274eae4
parent47692104c13b05724c941fcdd34e3e5456f779ec
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