mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-17 12:35:19 +00:00
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>
This commit is contained in:
parent
93ebec96f2
commit
6d6f2d097e
@ -2010,13 +2010,10 @@ static int check_fs_root(struct btrfs_root *root,
|
|||||||
|
|
||||||
static int fs_root_objectid(u64 objectid)
|
static int fs_root_objectid(u64 objectid)
|
||||||
{
|
{
|
||||||
if (objectid == BTRFS_FS_TREE_OBJECTID ||
|
if (objectid == BTRFS_TREE_RELOC_OBJECTID ||
|
||||||
objectid == BTRFS_TREE_RELOC_OBJECTID ||
|
objectid == BTRFS_DATA_RELOC_TREE_OBJECTID)
|
||||||
objectid == BTRFS_DATA_RELOC_TREE_OBJECTID ||
|
|
||||||
(objectid >= BTRFS_FIRST_FREE_OBJECTID &&
|
|
||||||
objectid <= BTRFS_LAST_FREE_OBJECTID))
|
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return is_fstree(objectid);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int check_fs_roots(struct btrfs_root *root,
|
static int check_fs_roots(struct btrfs_root *root,
|
||||||
|
Loading…
Reference in New Issue
Block a user