]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit33a3db6388f08fddf9230313b00a2b7fb93f9527
tree7dd720b66b4ba912155cbd950bc645f886532192
parentfde32e84656e5376b341249aaf0d9df5c3d93929
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