summaryrefslogtreecommitdiff
path: root/ctree.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-05-28 09:36:47 +0300
committerDavid Sterba <dsterba@suse.com>2018-06-07 16:37:37 +0200
commita22b593587c2c3e4d3b07cedcde5996461f19a06 (patch)
treece9df1d939e4c7fe68fb63d2bafbe85392885a5e /ctree.c
parent12e2280d7bef145859e4d208533056ec90af9a4e (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 'ctree.c')
-rw-r--r--ctree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctree.c b/ctree.c
index e79d7aa3..c89fd11f 100644
--- a/ctree.c
+++ b/ctree.c
@@ -192,7 +192,8 @@ static noinline int update_ref_for_cow(struct btrfs_trans_handle *trans,
*/
if (btrfs_block_can_be_shared(root, buf)) {
- ret = btrfs_lookup_extent_info(trans, root, buf->start,
+ ret = btrfs_lookup_extent_info(trans, trans->fs_info,
+ buf->start,
btrfs_header_level(buf), 1,
&refs, &flags);
BUG_ON(ret);