diff options
author | Zhaolei <zhaolei@cn.fujitsu.com> | 2015-08-06 10:16:24 -0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-08-09 10:07:14 -0400 |
commit | 9ed0dea09fc5e8cb1926c15fc986a46a2db43da6 (patch) | |
tree | f88e02dfbe95d609f2a258597cb25b16a6292891 | |
parent | d02207512df120a37a8f1e50a5f90c555266282c (diff) |
btrfs: Remove root argument in extent_data_ref_count()
Because it is never used.
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r-- | fs/btrfs/extent-tree.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index e2ad72b241ad..59d59d98bca1 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -1316,8 +1316,7 @@ static noinline int remove_extent_data_ref(struct btrfs_trans_handle *trans, | |||
1316 | return ret; | 1316 | return ret; |
1317 | } | 1317 | } |
1318 | 1318 | ||
1319 | static noinline u32 extent_data_ref_count(struct btrfs_root *root, | 1319 | static noinline u32 extent_data_ref_count(struct btrfs_path *path, |
1320 | struct btrfs_path *path, | ||
1321 | struct btrfs_extent_inline_ref *iref) | 1320 | struct btrfs_extent_inline_ref *iref) |
1322 | { | 1321 | { |
1323 | struct btrfs_key key; | 1322 | struct btrfs_key key; |
@@ -6349,7 +6348,7 @@ static int __btrfs_free_extent(struct btrfs_trans_handle *trans, | |||
6349 | } else { | 6348 | } else { |
6350 | if (found_extent) { | 6349 | if (found_extent) { |
6351 | BUG_ON(is_data && refs_to_drop != | 6350 | BUG_ON(is_data && refs_to_drop != |
6352 | extent_data_ref_count(root, path, iref)); | 6351 | extent_data_ref_count(path, iref)); |
6353 | if (iref) { | 6352 | if (iref) { |
6354 | BUG_ON(path->slots[0] != extent_slot); | 6353 | BUG_ON(path->slots[0] != extent_slot); |
6355 | } else { | 6354 | } else { |