btrfs: factor out devs_max setting in __btrfs_alloc_chunk
authorDavid Sterba <dsterba@suse.com>
Fri, 17 May 2019 09:43:38 +0000 (11:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:57 +0000 (13:34 +0200)
commite3ecdb3fdecf2d505bd742ffccf1b0a2854f2812
tree17eb1a86935188e86260fc7d5bef73e1d5357b2b
parent8c3e3582a4f0dbdaea49cfd71640a626c8bb7134
btrfs: factor out devs_max setting in __btrfs_alloc_chunk

Merge the repeated code before the if-else block.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c