Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> --- cmds-check.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index c56da2a..26baab0 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -2049,13 +2049,10 @@ skip_walking: 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, -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html