diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-05-28 09:36:47 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-06-07 16:37:37 +0200 |
commit | a22b593587c2c3e4d3b07cedcde5996461f19a06 (patch) | |
tree | ce9df1d939e4c7fe68fb63d2bafbe85392885a5e /check/main.c | |
parent | 12e2280d7bef145859e4d208533056ec90af9a4e (diff) |
btrfs-progs: Change btrfs_root to btrfs_fs_info argument in btrfs_lookup_extent_info
That function really wants an fs_info and not a root. Accidentally,
this also makes the kernel/user space signatures to be coherent.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'check/main.c')
-rw-r--r-- | check/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/check/main.c b/check/main.c index 9a7e6b6d..9e8a83f8 100644 --- a/check/main.c +++ b/check/main.c @@ -1622,9 +1622,9 @@ static int walk_down_tree(struct btrfs_root *root, struct btrfs_path *path, refs = nrefs->refs[*level]; ret = 0; } else { - ret = btrfs_lookup_extent_info(NULL, root, - path->nodes[*level]->start, - *level, 1, &refs, NULL); + ret = btrfs_lookup_extent_info(NULL, fs_info, + path->nodes[*level]->start, + *level, 1, &refs, NULL); if (ret < 0) { err = ret; goto out; @@ -1664,7 +1664,7 @@ static int walk_down_tree(struct btrfs_root *root, struct btrfs_path *path, if (bytenr == nrefs->bytenr[*level - 1]) { refs = nrefs->refs[*level - 1]; } else { - ret = btrfs_lookup_extent_info(NULL, root, bytenr, + ret = btrfs_lookup_extent_info(NULL, fs_info, bytenr, *level - 1, 1, &refs, NULL); if (ret < 0) { refs = 0; @@ -5928,7 +5928,7 @@ static int run_next_block(struct btrfs_root *root, flags = 0; if (!init_extent_tree) { - ret = btrfs_lookup_extent_info(NULL, root, bytenr, + ret = btrfs_lookup_extent_info(NULL, fs_info, bytenr, btrfs_header_level(buf), 1, NULL, &flags); if (ret < 0) { |