summaryrefslogtreecommitdiff
path: root/check/main.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2018-01-18 15:41:15 +0800
committerDavid Sterba <dsterba@suse.com>2018-02-02 16:01:58 +0100
commitd1b55330c249bc47983b802908240723b0e534e3 (patch)
tree8cae9578e1b9c66bd33509352a1d25d0daee29f0 /check/main.c
parent58a19f1ea7a6d19e03500faf444a6d46defc0bdb (diff)
btrfs-progs: check: Move fs_root_objectid function to check/common.h
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>
Diffstat (limited to 'check/main.c')
-rw-r--r--check/main.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/check/main.c b/check/main.c
index 79a2d595..04dd06d0 100644
--- a/check/main.c
+++ b/check/main.c
@@ -2168,8 +2168,6 @@ out:
return err;
}
-static int fs_root_objectid(u64 objectid);
-
/*
* Update global fs information.
*/
@@ -4250,14 +4248,6 @@ skip_walking:
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)
{