btrfs-progs: fix csum root copy-n-paste error
authorZach Brown <zab@zabbo.net>
Wed, 15 Oct 2014 23:14:21 +0000 (16:14 -0700)
committerDavid Sterba <dsterba@suse.cz>
Mon, 3 Nov 2014 17:35:30 +0000 (18:35 +0100)
commit34ed841dcdeaab301be89feebe2632a8f74ee2c0
treec0b50d0bcb809a98cd587173b6f3b52bee0418d9
parent85d67ac1450ff245af79ac907092fa55eb52fb32
btrfs-progs: fix csum root copy-n-paste error

btrfs_setup_all_roots() had some copy and pasted code for trying to
setup a root and then creating a blank node if that failed.  The copy
for the csum_root created the blank node in the extent_root.

So we create a function to use a consistent root.

Signed-off-by: Zach Brown <zab@zabbo.net>
Signed-off-by: David Sterba <dsterba@suse.cz>
disk-io.c