Skip to content

Commit d12a1a2

Browse files
committed
btrfs: drop unused parameter transaction from alloc_log_tree()
The function got split in commit 6ab6ebb ("btrfs: split alloc_log_tree()") and since then transaction parameter has been unused. Reviewed-by: Anand Jain <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 01c5db7 commit d12a1a2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

fs/btrfs/disk-io.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -917,8 +917,7 @@ struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
917917
return ERR_PTR(ret);
918918
}
919919

920-
static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans,
921-
struct btrfs_fs_info *fs_info)
920+
static struct btrfs_root *alloc_log_tree(struct btrfs_fs_info *fs_info)
922921
{
923922
struct btrfs_root *root;
924923

@@ -966,7 +965,7 @@ int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans,
966965
{
967966
struct btrfs_root *log_root;
968967

969-
log_root = alloc_log_tree(trans, fs_info);
968+
log_root = alloc_log_tree(fs_info);
970969
if (IS_ERR(log_root))
971970
return PTR_ERR(log_root);
972971

@@ -992,7 +991,7 @@ int btrfs_add_log_tree(struct btrfs_trans_handle *trans,
992991
struct btrfs_inode_item *inode_item;
993992
int ret;
994993

995-
log_root = alloc_log_tree(trans, fs_info);
994+
log_root = alloc_log_tree(fs_info);
996995
if (IS_ERR(log_root))
997996
return PTR_ERR(log_root);
998997

0 commit comments

Comments
 (0)