]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
btrfs: drop trans parameter of insert_delayed_ref
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 12 Dec 2022 09:02:48 +0000 (01:02 -0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Feb 2023 16:50:32 +0000 (17:50 +0100)
Now that drop_delayed_ref() doesn't need a btrfs_trans_handle, drop it
from insert_delayed_ref() as well.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-ref.c

index 046ba49b8f948864eccbba0161f36960c4eac4f0..678ce95c04ac62d63172b60220ec964662c03f08 100644 (file)
@@ -599,8 +599,7 @@ void btrfs_delete_ref_head(struct btrfs_delayed_ref_root *delayed_refs,
  * Return 0 for insert.
  * Return >0 for merge.
  */
-static int insert_delayed_ref(struct btrfs_trans_handle *trans,
-                             struct btrfs_delayed_ref_root *root,
+static int insert_delayed_ref(struct btrfs_delayed_ref_root *root,
                              struct btrfs_delayed_ref_head *href,
                              struct btrfs_delayed_ref_node *ref)
 {
@@ -976,7 +975,7 @@ int btrfs_add_delayed_tree_ref(struct btrfs_trans_handle *trans,
        head_ref = add_delayed_ref_head(trans, head_ref, record,
                                        action, &qrecord_inserted);
 
-       ret = insert_delayed_ref(trans, delayed_refs, head_ref, &ref->node);
+       ret = insert_delayed_ref(delayed_refs, head_ref, &ref->node);
        spin_unlock(&delayed_refs->lock);
 
        /*
@@ -1068,7 +1067,7 @@ int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans,
        head_ref = add_delayed_ref_head(trans, head_ref, record,
                                        action, &qrecord_inserted);
 
-       ret = insert_delayed_ref(trans, delayed_refs, head_ref, &ref->node);
+       ret = insert_delayed_ref(delayed_refs, head_ref, &ref->node);
        spin_unlock(&delayed_refs->lock);
 
        /*