Just another small wrapper shared between original and lowmem mode.
Reviewed-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
#undef S_SHIFT
}
+static inline int fs_root_objectid(u64 objectid)
+{
+ if (objectid == BTRFS_TREE_RELOC_OBJECTID ||
+ objectid == BTRFS_DATA_RELOC_TREE_OBJECTID)
+ return 1;
+ return is_fstree(objectid);
+}
+
#endif
return err;
}
-static int fs_root_objectid(u64 objectid);
-
/*
* Update global fs information.
*/
return ret;
}
-static int fs_root_objectid(u64 objectid)
-{
- if (objectid == BTRFS_TREE_RELOC_OBJECTID ||
- objectid == BTRFS_DATA_RELOC_TREE_OBJECTID)
- return 1;
- return is_fstree(objectid);
-}
-
static int check_fs_roots(struct btrfs_fs_info *fs_info,
struct cache_tree *root_cache)
{