static int batch_delete_dir_index_items(struct btrfs_trans_handle *trans,
                                        struct btrfs_inode *inode,
                                        struct btrfs_path *path,
-                                       struct btrfs_log_ctx *ctx,
                                        const struct list_head *delayed_del_list,
                                        const struct btrfs_delayed_item *first,
                                        const struct btrfs_delayed_item **last_ret)
                if (ret < 0) {
                        return ret;
                } else if (ret == 0) {
-                       ret = batch_delete_dir_index_items(trans, inode, path, ctx,
+                       ret = batch_delete_dir_index_items(trans, inode, path,
                                                           delayed_del_list, curr,
                                                           &last);
                        if (ret)