/*
  * raid5 cache state machine
  *
- * With rhe RAID cache, each stripe works in two phases:
+ * With the RAID cache, each stripe works in two phases:
  *     - caching phase
  *     - writing-out phase
  *
 
 static struct stripe_head *
 r5c_recovery_alloc_stripe(struct r5conf *conf,
-                         struct list_head *recovery_list,
                          sector_t stripe_sect,
                          sector_t log_start)
 {
                                                stripe_sect);
 
                if (!sh) {
-                       sh = r5c_recovery_alloc_stripe(conf, cached_stripe_list,
-                                                      stripe_sect, ctx->pos);
+                       sh = r5c_recovery_alloc_stripe(conf, stripe_sect, ctx->pos);
                        /*
                         * cannot get stripe from raid5_get_active_stripe
                         * try replay some stripes
                                r5c_recovery_replay_stripes(
                                        cached_stripe_list, ctx);
                                sh = r5c_recovery_alloc_stripe(
-                                       conf, cached_stripe_list,
-                                       stripe_sect, ctx->pos);
+                                       conf, stripe_sect, ctx->pos);
                        }
                        if (!sh) {
                                pr_debug("md/raid:%s: Increasing stripe cache size to %d to recovery data on journal.\n",
                                raid5_set_cache_size(mddev,
                                                     conf->min_nr_stripes * 2);
                                sh = r5c_recovery_alloc_stripe(
-                                       conf, cached_stripe_list, stripe_sect,
-                                       ctx->pos);
+                                       conf, stripe_sect, ctx->pos);
                        }
                        if (!sh) {
                                pr_err("md/raid:%s: Cannot get enough stripes due to memory pressure. Recovery failed.\n",