diff options
author | Liu Bo | 2018-09-12 00:06:23 +0200 |
---|---|---|
committer | David Sterba | 2018-10-15 17:23:30 +0200 |
commit | 98e6b1eb4022f2eb9845f0da5f16c179e5f32b9f (patch) | |
tree | 210985ffde3e4d0594db747a16e4ce174bc10240 /crypto | |
parent | Btrfs: unify error handling of btrfs_lookup_dir_item (diff) | |
download | kernel-qcow2-linux-98e6b1eb4022f2eb9845f0da5f16c179e5f32b9f.tar.gz kernel-qcow2-linux-98e6b1eb4022f2eb9845f0da5f16c179e5f32b9f.tar.xz kernel-qcow2-linux-98e6b1eb4022f2eb9845f0da5f16c179e5f32b9f.zip |
Btrfs: remove unnecessary level check in balance_level
In the callchain:
btrfs_search_slot()
if (level != 0)
setup_nodes_for_search()
balance_level()
It is just impossible to have level=0 in balance_level, we can drop the
check.
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions