Skip to content

Commit

Permalink
Cleanup Raid-Z Typo fixes
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
Closes openzfs#13834
  • Loading branch information
ryao authored Sep 6, 2022
1 parent 7c0e394 commit 11df48a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/sys/vdev_raidz_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions module/zfs/vdev_raidz_math_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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
*/
Expand Down

0 comments on commit 11df48a

Please sign in to comment.