summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-08-16 14:51:48 +0300
committerDavid Sterba <dsterba@suse.com>2018-10-23 14:48:41 +0200
commit8bbb72cfc5ae07e37ac7851e63903340f7bf7967 (patch)
treed13411a2048c3e0324610681934b8f8a527aceb3
parent6de2debdb0bb3bfac1483165b03c290696ef115c (diff)
btrfs-progs: Remove __free_extent2, now unused
Now that delayed refs have been all wired up clean up the __free_extent2 adapter function since it's no longer needed. No functional changes. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--extent-tree.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/extent-tree.c b/extent-tree.c
index fd3bd583..1fbedaa9 100644
--- a/extent-tree.c
+++ b/extent-tree.c
@@ -2052,17 +2052,6 @@ void btrfs_unpin_extent(struct btrfs_fs_info *fs_info,
update_pinned_extents(fs_info, bytenr, num_bytes, 0);
}
-static int __free_extent2(struct btrfs_trans_handle *trans,
- struct btrfs_delayed_ref_node *node,
- struct btrfs_delayed_extent_op *extent_op)
-{
-
- struct btrfs_delayed_tree_ref *ref = btrfs_delayed_node_to_tree_ref(node);
-
- return __free_extent(trans, node->bytenr, node->num_bytes,
- ref->parent, ref->root, ref->level, 0, 1);
-}
-
/*
* remove an extent from the root, returns 0 on success
*/
@@ -4184,7 +4173,9 @@ static int run_delayed_tree_ref(struct btrfs_trans_handle *trans,
BUG_ON(!extent_op || !extent_op->update_flags);
ret = alloc_reserved_tree_block2(trans, node, extent_op);
} else if (node->action == BTRFS_DROP_DELAYED_REF) {
- ret = __free_extent2(trans, node, extent_op);
+ struct btrfs_delayed_tree_ref *ref = btrfs_delayed_node_to_tree_ref(node);
+ ret = __free_extent(trans, node->bytenr, node->num_bytes,
+ ref->parent, ref->root, ref->level, 0, 1);
} else {
BUG();
}