Loading drivers/md/raid5.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -156,16 +156,16 @@ static inline int raid6_next_disk(int disk, int raid_disks) static int raid6_idx_to_slot(int idx, struct stripe_head *sh, static int raid6_idx_to_slot(int idx, struct stripe_head *sh, int *count, int syndrome_disks) int *count, int syndrome_disks) { { int slot; int slot = *count; if (sh->ddf_layout) if (sh->ddf_layout) slot = (*count)++; (*count)++; if (idx == sh->pd_idx) if (idx == sh->pd_idx) return syndrome_disks; return syndrome_disks; if (idx == sh->qd_idx) if (idx == sh->qd_idx) return syndrome_disks + 1; return syndrome_disks + 1; if (!sh->ddf_layout) if (!sh->ddf_layout) slot = (*count)++; (*count)++; return slot; return slot; } } Loading Loading
drivers/md/raid5.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -156,16 +156,16 @@ static inline int raid6_next_disk(int disk, int raid_disks) static int raid6_idx_to_slot(int idx, struct stripe_head *sh, static int raid6_idx_to_slot(int idx, struct stripe_head *sh, int *count, int syndrome_disks) int *count, int syndrome_disks) { { int slot; int slot = *count; if (sh->ddf_layout) if (sh->ddf_layout) slot = (*count)++; (*count)++; if (idx == sh->pd_idx) if (idx == sh->pd_idx) return syndrome_disks; return syndrome_disks; if (idx == sh->qd_idx) if (idx == sh->qd_idx) return syndrome_disks + 1; return syndrome_disks + 1; if (!sh->ddf_layout) if (!sh->ddf_layout) slot = (*count)++; (*count)++; return slot; return slot; } } Loading