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/mode-lowmem.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/mode-lowmem.c')
-rw-r--r-- | check/mode-lowmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/check/mode-lowmem.c b/check/mode-lowmem.c index 410c5f63..989306f0 100644 --- a/check/mode-lowmem.c +++ b/check/mode-lowmem.c @@ -186,8 +186,8 @@ static int update_nodes_refs(struct btrfs_root *root, u64 bytenr, if (bytenr != (u64)-1) { /* the return value of this function seems a mistake */ - ret = btrfs_lookup_extent_info(NULL, root, bytenr, - level, 1, &refs, &flags); + ret = btrfs_lookup_extent_info(NULL, root->fs_info, bytenr, + level, 1, &refs, &flags); /* temporary fix */ if (ret < 0 && !check_all) return ret; |