btrfs: simplify arguments to tree_insert_offset()
authorFilipe Manana <fdmanana@suse.com>
Thu, 4 May 2023 11:04:22 +0000 (12:04 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:24 +0000 (13:59 +0200)
commit0d6bac4d30b8bdefd1cb97296620141953f409d6
tree89fa87bf86743fca4fe4ffbd51966a48a1687a1e
parentb77433b144621ebd5d0a6a3b6a3d454fa45b9309
btrfs: simplify arguments to tree_insert_offset()

For the in-memory component of space caching (free space cache and free
space tree), three of the arguments passed to tree_insert_offset() can
always be taken from the new free space entry that we are about to add.

So simplify tree_insert_offset() to take the new entry instead of the
'offset', 'node' and 'bitmap' arguments. This will also allow to make
further changes simpler.

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/free-space-cache.c