btrfs: Remove root argument in extent_data_ref_count()
authorZhaolei <zhaolei@cn.fujitsu.com>
Thu, 6 Aug 2015 14:16:24 +0000 (22:16 +0800)
committerChris Mason <clm@fb.com>
Sun, 9 Aug 2015 14:07:14 +0000 (07:07 -0700)
Because it is never used.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c

index e2ad72b241ad11e0ebcbd0c4e9eb3cf14ff08624..59d59d98bca141bd4665730911cd5ec95ed25863 100644 (file)
@@ -1316,8 +1316,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;
@@ -6349,7 +6348,7 @@ static int __btrfs_free_extent(struct btrfs_trans_handle *trans,
        } else {
                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 {