]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit002b8f378a096e064d2c42b312ba1aebb083d290
tree65874d1b55f5a0812e9d4d41b5312f8bcfb55ef4
parent669d9cd2eb26a898a8624dc06b0ef0cf19ad87d0
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