btrfs: remove the redundant parameter level in btrfs_bin_search()
authorQu Wenruo <wqu@suse.com>
Fri, 17 Apr 2020 07:08:21 +0000 (15:08 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:24 +0000 (11:25 +0200)
commite3b8336117e515a260da32fa10bb3354ba12c429
tree65874d1b55f5a0812e9d4d41b5312f8bcfb55ef4
parentb335eab890ed4c5b8e45e4b3d12f303686298850
btrfs: remove the redundant parameter level in btrfs_bin_search()

All callers pass the eb::level so we can get read it directly inside the
btrfs_bin_search and key_search.

This is inspired by the work of Marek in U-boot.

CC: Marek Behun <marek.behun@nic.cz>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/relocation.c
fs/btrfs/tree-log.c