]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: drop unused parameter transaction from alloc_log_tree()
authorDavid Sterba <dsterba@suse.com>
Wed, 9 Oct 2024 14:32:20 +0000 (16:32 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:17 +0000 (14:34 +0100)
The function got split in commit 6ab6ebb76042d3 ("btrfs: split
alloc_log_tree()") and since then transaction parameter has been unused.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c

index 43b7b331b2da36e9c4f3ea37301f6b49c21e1bc9..02aaee0bc4e3862e8476378b47740439572d6b8c 100644 (file)
@@ -917,8 +917,7 @@ fail:
        return ERR_PTR(ret);
 }
 
-static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans,
-                                        struct btrfs_fs_info *fs_info)
+static struct btrfs_root *alloc_log_tree(struct btrfs_fs_info *fs_info)
 {
        struct btrfs_root *root;
 
@@ -966,7 +965,7 @@ int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans,
 {
        struct btrfs_root *log_root;
 
-       log_root = alloc_log_tree(trans, fs_info);
+       log_root = alloc_log_tree(fs_info);
        if (IS_ERR(log_root))
                return PTR_ERR(log_root);
 
@@ -992,7 +991,7 @@ int btrfs_add_log_tree(struct btrfs_trans_handle *trans,
        struct btrfs_inode_item *inode_item;
        int ret;
 
-       log_root = alloc_log_tree(trans, fs_info);
+       log_root = alloc_log_tree(fs_info);
        if (IS_ERR(log_root))
                return PTR_ERR(log_root);