btrfs: show correct warning if can't read data reloc tree

If a filesystem is missing its data reloc tree, we get something like
this in dmesg:

BTRFS warning (device loop11): failed to read root (objectid=4): -2
BTRFS error (device loop11): open_ctree failed: -2

objectid is BTRFS_DEV_TREE_OBJECTID, but this should actually be the
value of BTRFS_DATA_RELOC_TREE_OBJECTID.

btrfs_read_roots() prints location.objectid on failure, but this isn't
set when reading the data reloc tree. Set location.objectid to the
correct value on failure, so that the error message makes sense.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>

authored by Mark Harmstone and committed by David Sterba 2bb83bc4 530e3d4a

Changed files
+1
fs
btrfs
+1
fs/btrfs/disk-io.c
··· 2255 2255 BTRFS_DATA_RELOC_TREE_OBJECTID, true); 2256 2256 if (IS_ERR(root)) { 2257 2257 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { 2258 + location.objectid = BTRFS_DATA_RELOC_TREE_OBJECTID; 2258 2259 ret = PTR_ERR(root); 2259 2260 goto out; 2260 2261 }