Btrfs-progs: fsck: switch to is_fstree()

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
master
Wang Shilong 2014-06-19 09:27:04 +08:00 committed by David Sterba
parent 93ebec96f2
commit 6d6f2d097e
1 changed files with 3 additions and 6 deletions

View File

@ -2010,13 +2010,10 @@ static int check_fs_root(struct btrfs_root *root,
static int fs_root_objectid(u64 objectid)
{
if (objectid == BTRFS_FS_TREE_OBJECTID ||
objectid == BTRFS_TREE_RELOC_OBJECTID ||
objectid == BTRFS_DATA_RELOC_TREE_OBJECTID ||
(objectid >= BTRFS_FIRST_FREE_OBJECTID &&
objectid <= BTRFS_LAST_FREE_OBJECTID))
if (objectid == BTRFS_TREE_RELOC_OBJECTID ||
objectid == BTRFS_DATA_RELOC_TREE_OBJECTID)
return 1;
return 0;
return is_fstree(objectid);
}
static int check_fs_roots(struct btrfs_root *root,