btrfs-progs: mkfs: refactor create_data_reloc_tree
authoryingyil <yingyil@google.com>
Wed, 30 Aug 2017 17:24:49 +0000 (10:24 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Sep 2017 13:17:39 +0000 (15:17 +0200)
commitf7267bc85c6d89d64b534b737c63cf8f88c46d7f
tree72c3e6b88d4f421d3a3db096ff1006b71f0d3253
parentbcaadc2e498f32a03ee694ac75ece0bb1a87c311
btrfs-progs: mkfs: refactor create_data_reloc_tree

Add an objectid parameter to make the function a general one for
inserting root items and rename it to create_tree. The change cascades
down to the callchain.

Signed-off-by: yingyil <yingyil@google.com>
Signed-off-by: David Sterba <dsterba@suse.com>
mkfs/main.c