btrfs-progs: mkfs: Move the tree root creation to own function
authorGu Jinxiang <gujx@cn.fujitsu.com>
Fri, 25 Aug 2017 07:23:36 +0000 (15:23 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 8 Sep 2017 14:15:05 +0000 (16:15 +0200)
commit944e14da14af9e292c7fbd7a006bb4b556ac6766
tree926bc0f761ced9f0eef1221ce5cebaf6c53b9603
parentdf4a04484aeffa5e88488a42307af4d60a4f3e62
btrfs-progs: mkfs: Move the tree root creation to own function

make_btrfs is too long to understand, make creatation of root tree
in a function.

Some of the tree roots are now created in a loop, where the code is just
copypasted. We now make use of the reference_root_table to translate
block index to root objectid.

Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>
[ updated changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
mkfs/common.c