From 11df48ab8ba374de944cd0483c55ddaaad46b91d Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Tue, 6 Sep 2022 12:43:21 -0400 Subject: [PATCH] Cleanup Raid-Z Typo fixes Reviewed-by: Brian Behlendorf Signed-off-by: Richard Yao Closes #13834 --- include/sys/vdev_raidz_impl.h | 2 +- module/zfs/vdev_raidz_math_impl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/sys/vdev_raidz_impl.h b/include/sys/vdev_raidz_impl.h index 12f5eff22c..c1037fa12e 100644 --- a/include/sys/vdev_raidz_impl.h +++ b/include/sys/vdev_raidz_impl.h @@ -321,7 +321,7 @@ vdev_raidz_exp2(const uint8_t a, const unsigned exp) * Galois Field operations. * * gf_exp2 - computes 2 raised to the given power - * gf_exp2 - computes 4 raised to the given power + * gf_exp4 - computes 4 raised to the given power * gf_mul - multiplication * gf_div - division * gf_inv - multiplicative inverse diff --git a/module/zfs/vdev_raidz_math_impl.h b/module/zfs/vdev_raidz_math_impl.h index 2d96f60231..8ba7e0cd76 100644 --- a/module/zfs/vdev_raidz_math_impl.h +++ b/module/zfs/vdev_raidz_math_impl.h @@ -460,8 +460,8 @@ static void raidz_gen_pqr_add(void **c, const void *dc, const size_t csize, const size_t dsize) { - v_t *p = (v_t *)c[0]; - v_t *q = (v_t *)c[1]; + v_t *p = (v_t *)c[CODE_P]; + v_t *q = (v_t *)c[CODE_Q]; v_t *r = (v_t *)c[CODE_R]; const v_t *d = (const v_t *)dc; const v_t * const dend = d + (dsize / sizeof (v_t)); @@ -486,7 +486,7 @@ raidz_gen_pqr_add(void **c, const void *dc, const size_t csize, /* - * Generate PQR parity (RAIDZ2) + * Generate PQR parity (RAIDZ3) * * @rr RAIDZ row */