* item at 'max_slot' won't be touched.  Use (u32)-1 to make us do all the
  * items
  */
-static noinline int __push_leaf_left(struct btrfs_trans_handle *trans,
-                                    struct btrfs_fs_info *fs_info,
+static noinline int __push_leaf_left(struct btrfs_fs_info *fs_info,
                                     struct btrfs_path *path, int data_size,
                                     int empty, struct extent_buffer *left,
                                     int free_space, u32 right_nritems,
                goto out;
        }
 
-       return __push_leaf_left(trans, fs_info, path, min_data_size,
+       return __push_leaf_left(fs_info, path, min_data_size,
                               empty, left, free_space, right_nritems,
                               max_slot);
 out: