btrfs: remove max argument from generic_bin_search
authorMarcos Paulo de Souza <mpdesouza@suse.com>
Tue, 6 Jul 2021 18:13:25 +0000 (15:13 -0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Aug 2021 11:18:59 +0000 (13:18 +0200)
commit67d5e289a193c643a70ceda437c625e2bc876dbc
tree7dd720b66b4ba912155cbd950bc645f886532192
parent2eadb9e75e8e65eaf3e17628e24798a3c5374f90
btrfs: remove max argument from generic_bin_search

Both callers use btrfs_header_nritems to feed the max argument.  Remove
the argument and let generic_bin_search call it itself.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c