u64 start, u64 len, int delalloc);
 int btrfs_free_and_pin_reserved_extent(struct btrfs_fs_info *fs_info,
                                       u64 start, u64 len);
-void btrfs_prepare_extent_commit(struct btrfs_trans_handle *trans,
-                                struct btrfs_fs_info *fs_info);
+void btrfs_prepare_extent_commit(struct btrfs_fs_info *fs_info);
 int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans,
                               struct btrfs_fs_info *fs_info);
 int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans,
 
        spin_unlock(&space_info->lock);
        return ret;
 }
-void btrfs_prepare_extent_commit(struct btrfs_trans_handle *trans,
-                               struct btrfs_fs_info *fs_info)
+void btrfs_prepare_extent_commit(struct btrfs_fs_info *fs_info)
 {
        struct btrfs_caching_control *next;
        struct btrfs_caching_control *caching_ctl;
 
                goto scrub_continue;
        }
 
-       btrfs_prepare_extent_commit(trans, fs_info);
+       btrfs_prepare_extent_commit(fs_info);
 
        cur_trans = fs_info->running_transaction;