btrfs-progs: check: Fix assert when using lowmem on fs with tree reloc tree
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 5 Dec 2016 09:07:53 +0000 (17:07 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 14 Dec 2016 14:21:26 +0000 (15:21 +0100)
commit0d8601ab6c7a73f025eeccf8e8ce3aa1cd2f3aa9
tree4cf6a3df124ac7dd4190c18ff75a65ba382ac171
parent71ffdb50eccf409f3f50389ca6f2057db105e0f2
btrfs-progs: check: Fix assert when using lowmem on fs with tree reloc tree

When using lowmem mode, btrfs check will report ASSERT for calling
btrfs_read_fs_root() on tree reloc tree.

Fix it by checking objectid and call btrfs_read_fs_root_no_cache() for
tree reloc tree.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c