btrfs-progs: remove unused argument from extent_data_ref_count
authorDavid Sterba <dsterba@suse.com>
Thu, 9 Feb 2017 16:42:02 +0000 (17:42 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:00:47 +0000 (13:00 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
extent-tree.c

index f9ab1d6..511dee5 100644 (file)
@@ -857,8 +857,7 @@ static noinline int remove_extent_data_ref(struct btrfs_trans_handle *trans,
        return ret;
 }
 
-static noinline u32 extent_data_ref_count(struct btrfs_root *root,
-                                         struct btrfs_path *path,
+static noinline u32 extent_data_ref_count(struct btrfs_path *path,
                                          struct btrfs_extent_inline_ref *iref)
 {
        struct btrfs_key key;
@@ -2366,7 +2365,7 @@ static int __free_extent(struct btrfs_trans_handle *trans,
 
                if (found_extent) {
                        BUG_ON(is_data && refs_to_drop !=
-                              extent_data_ref_count(root, path, iref));
+                              extent_data_ref_count(path, iref));
                        if (iref) {
                                BUG_ON(path->slots[0] != extent_slot);
                        } else {