From a22b593587c2c3e4d3b07cedcde5996461f19a06 Mon Sep 17 00:00:00 2001 From: Nikolay Borisov Date: Mon, 28 May 2018 09:36:47 +0300 Subject: 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 Reviewed-by: Su Yue Signed-off-by: David Sterba --- ctree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ctree.c') 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); -- cgit v1.2.3