mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-21 05:00:44 +00:00
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>
This commit is contained in:
parent
6de2debdb0
commit
8bbb72cfc5
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user