@@ -37,8 +37,8 @@ static int balance_node_right(struct btrfs_trans_handle *trans,
3737 struct btrfs_root * root ,
3838 struct extent_buffer * dst_buf ,
3939 struct extent_buffer * src_buf );
40- static void del_ptr (struct btrfs_trans_handle * trans , struct btrfs_root * root ,
41- struct btrfs_path * path , int level , int slot );
40+ static void del_ptr (struct btrfs_root * root , struct btrfs_path * path ,
41+ int level , int slot );
4242static void tree_mod_log_free_eb (struct btrfs_fs_info * fs_info ,
4343 struct extent_buffer * eb );
4444struct extent_buffer * read_old_tree_block (struct btrfs_root * root , u64 bytenr ,
@@ -1830,7 +1830,7 @@ static noinline int balance_level(struct btrfs_trans_handle *trans,
18301830 if (btrfs_header_nritems (right ) == 0 ) {
18311831 clean_tree_block (trans , root , right );
18321832 btrfs_tree_unlock (right );
1833- del_ptr (trans , root , path , level + 1 , pslot + 1 );
1833+ del_ptr (root , path , level + 1 , pslot + 1 );
18341834 root_sub_used (root , right -> len );
18351835 btrfs_free_tree_block (trans , root , right , 0 , 1 );
18361836 free_extent_buffer_stale (right );
@@ -1874,7 +1874,7 @@ static noinline int balance_level(struct btrfs_trans_handle *trans,
18741874 if (btrfs_header_nritems (mid ) == 0 ) {
18751875 clean_tree_block (trans , root , mid );
18761876 btrfs_tree_unlock (mid );
1877- del_ptr (trans , root , path , level + 1 , pslot );
1877+ del_ptr (root , path , level + 1 , pslot );
18781878 root_sub_used (root , mid -> len );
18791879 btrfs_free_tree_block (trans , root , mid , 0 , 1 );
18801880 free_extent_buffer_stale (mid );
@@ -2930,8 +2930,7 @@ static void fixup_low_keys(struct btrfs_root *root, struct btrfs_path *path,
29302930 * This function isn't completely safe. It's the caller's responsibility
29312931 * that the new key won't break the order
29322932 */
2933- void btrfs_set_item_key_safe (struct btrfs_trans_handle * trans ,
2934- struct btrfs_root * root , struct btrfs_path * path ,
2933+ void btrfs_set_item_key_safe (struct btrfs_root * root , struct btrfs_path * path ,
29352934 struct btrfs_key * new_key )
29362935{
29372936 struct btrfs_disk_key disk_key ;
@@ -4267,7 +4266,7 @@ int btrfs_duplicate_item(struct btrfs_trans_handle *trans,
42674266 return ret ;
42684267
42694268 path -> slots [0 ]++ ;
4270- setup_items_for_insert (trans , root , path , new_key , & item_size ,
4269+ setup_items_for_insert (root , path , new_key , & item_size ,
42714270 item_size , item_size +
42724271 sizeof (struct btrfs_item ), 1 );
42734272 leaf = path -> nodes [0 ];
@@ -4284,9 +4283,7 @@ int btrfs_duplicate_item(struct btrfs_trans_handle *trans,
42844283 * off the end of the item or if we shift the item to chop bytes off
42854284 * the front.
42864285 */
4287- void btrfs_truncate_item (struct btrfs_trans_handle * trans ,
4288- struct btrfs_root * root ,
4289- struct btrfs_path * path ,
4286+ void btrfs_truncate_item (struct btrfs_root * root , struct btrfs_path * path ,
42904287 u32 new_size , int from_end )
42914288{
42924289 int slot ;
@@ -4457,8 +4454,7 @@ void btrfs_extend_item(struct btrfs_trans_handle *trans,
44574454 * to save stack depth by doing the bulk of the work in a function
44584455 * that doesn't call btrfs_search_slot
44594456 */
4460- void setup_items_for_insert (struct btrfs_trans_handle * trans ,
4461- struct btrfs_root * root , struct btrfs_path * path ,
4457+ void setup_items_for_insert (struct btrfs_root * root , struct btrfs_path * path ,
44624458 struct btrfs_key * cpu_key , u32 * data_size ,
44634459 u32 total_data , u32 total_size , int nr )
44644460{
@@ -4574,7 +4570,7 @@ int btrfs_insert_empty_items(struct btrfs_trans_handle *trans,
45744570 slot = path -> slots [0 ];
45754571 BUG_ON (slot < 0 );
45764572
4577- setup_items_for_insert (trans , root , path , cpu_key , data_size ,
4573+ setup_items_for_insert (root , path , cpu_key , data_size ,
45784574 total_data , total_size , nr );
45794575 return 0 ;
45804576}
@@ -4612,8 +4608,8 @@ int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root
46124608 * the tree should have been previously balanced so the deletion does not
46134609 * empty a node.
46144610 */
4615- static void del_ptr (struct btrfs_trans_handle * trans , struct btrfs_root * root ,
4616- struct btrfs_path * path , int level , int slot )
4611+ static void del_ptr (struct btrfs_root * root , struct btrfs_path * path ,
4612+ int level , int slot )
46174613{
46184614 struct extent_buffer * parent = path -> nodes [level ];
46194615 u32 nritems ;
@@ -4666,7 +4662,7 @@ static noinline void btrfs_del_leaf(struct btrfs_trans_handle *trans,
46664662 struct extent_buffer * leaf )
46674663{
46684664 WARN_ON (btrfs_header_generation (leaf ) != trans -> transid );
4669- del_ptr (trans , root , path , 1 , path -> slots [1 ]);
4665+ del_ptr (root , path , 1 , path -> slots [1 ]);
46704666
46714667 /*
46724668 * btrfs_free_extent is expensive, we want to make sure we
0 commit comments