]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: remove redundant level argument from read_block_for_search()
authorFilipe Manana <fdmanana@suse.com>
Wed, 16 Oct 2024 09:45:47 +0000 (10:45 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:18 +0000 (14:34 +0100)
commit2b1ef80d68100a064f94fb2e658881b9f260cf08
treecdbca100b7acc05a86be6ef3a9f65e09da6f42b2
parenta8371fccf016c83e1c3d9fb832ebb60d783d1853
btrfs: remove redundant level argument from read_block_for_search()

The level parameter passed to read_block_for_search() always matches the
level of the extent buffer passed in the "eb_ret" parameter, which we are
also extracting into the "parent_level" local variable.

So remove the level parameter and instead use the "parent_level" variable
which in fact has a better name (it's the level of the parent node from
which we are reading a child node/leaf).

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