btrfs-progs/mkfs
Qu Wenruo b84aa6033c btrfs-progs: mkfs: refactor test_minimum_size to use the calculated minimal size
test_minimum_size() function is only called to check if provided device
is large enough.

However the minimal device size only needs to be calculated once, and
can be reused everywhere.

Refactor that function to make later modification easier.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2017-11-14 15:59:00 +01:00
..
common.c btrfs-progs: mkfs: refactor test_minimum_size to use the calculated minimal size 2017-11-14 15:59:00 +01:00
common.h btrfs-progs: mkfs: refactor test_minimum_size to use the calculated minimal size 2017-11-14 15:59:00 +01:00
main.c btrfs-progs: mkfs: refactor test_minimum_size to use the calculated minimal size 2017-11-14 15:59:00 +01:00