summaryrefslogtreecommitdiff
path: root/cmds-check.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-08-30 19:50:31 +0200
committerDavid Sterba <dsterba@suse.com>2017-09-08 16:15:05 +0200
commit12fe1a57f68b35bb4cc8747d5b7ffb450b5ff454 (patch)
treec92157fa5c601381412afe6e7625321794290703 /cmds-check.c
parent3ca3f200713d73789f2ee2dfe99c83297b6d5be9 (diff)
btrfs-progs: check: pass fs_info to check_fs_roots
The root pointer is not used anyway, will be cleaned up next. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-check.c')
-rw-r--r--cmds-check.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmds-check.c b/cmds-check.c
index 7f7bfb06..6911064b 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -4050,13 +4050,14 @@ static int fs_root_objectid(u64 objectid)
return is_fstree(objectid);
}
-static int check_fs_roots(struct btrfs_root *root,
+static int check_fs_roots(struct btrfs_fs_info *fs_info,
struct cache_tree *root_cache)
{
struct btrfs_path path;
struct btrfs_key key;
struct walk_control wc;
struct extent_buffer *leaf, *tree_node;
+ struct btrfs_root *root = fs_info->fs_root;
struct btrfs_root *tmp_root;
struct btrfs_root *tree_root = root->fs_info->tree_root;
int ret;
@@ -13094,7 +13095,7 @@ int cmd_check(int argc, char **argv)
if (check_mode == CHECK_MODE_LOWMEM)
ret = check_fs_roots_v2(root->fs_info);
else
- ret = check_fs_roots(root, &root_cache);
+ ret = check_fs_roots(info, &root_cache);
err |= !!ret;
if (ret) {
error("errors found in fs roots");