]> 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)
commitb7b9a28c2b20be5794907601b5076f746c02eb35
tree889fee486de6ec072587ab3d80692ea72274eae4
parentf74b21b59195a29a40b241fe86a041c6e95f10db
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