diff options
author | Nikolay Borisov <nborisov@suse.com> | 2017-06-27 09:02:26 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-08-16 14:19:52 +0200 |
commit | f148ef4d3a8feb2e30017050e3534a4d0646b769 (patch) | |
tree | 16c43b03201ce22e893589665bf50810a81cf20c /fs/btrfs/disk-io.c | |
parent | btrfs: Use explicit round_down call rather than open-coding it (diff) | |
download | linux-f148ef4d3a8feb2e30017050e3534a4d0646b769.tar.xz linux-f148ef4d3a8feb2e30017050e3534a4d0646b769.zip |
btrfs: Be explicit about usage of min()
__btrfs_alloc_chunk contains code which boils down to:
ndevs = min(ndevs, devs_max)
It's conditional upon devs_max not being 0. However, it cannot really be 0
since it's always set to either BTRFS_MAX_DEVS_SYS_CHUNK or
BTRFS_MAX_DEVS(fs_info->chunk_root). So eliminate the condition check and use
min explicitly. This has no functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions