Cleanup Raid-Z Typo fixes
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Closes #13834
This commit is contained in:
parent
7c0e3941cd
commit
11df48ab8b
|
@ -321,7 +321,7 @@ vdev_raidz_exp2(const uint8_t a, const unsigned exp)
|
||||||
* Galois Field operations.
|
* Galois Field operations.
|
||||||
*
|
*
|
||||||
* gf_exp2 - computes 2 raised to the given power
|
* 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_mul - multiplication
|
||||||
* gf_div - division
|
* gf_div - division
|
||||||
* gf_inv - multiplicative inverse
|
* gf_inv - multiplicative inverse
|
||||||
|
|
|
@ -460,8 +460,8 @@ static void
|
||||||
raidz_gen_pqr_add(void **c, const void *dc, const size_t csize,
|
raidz_gen_pqr_add(void **c, const void *dc, const size_t csize,
|
||||||
const size_t dsize)
|
const size_t dsize)
|
||||||
{
|
{
|
||||||
v_t *p = (v_t *)c[0];
|
v_t *p = (v_t *)c[CODE_P];
|
||||||
v_t *q = (v_t *)c[1];
|
v_t *q = (v_t *)c[CODE_Q];
|
||||||
v_t *r = (v_t *)c[CODE_R];
|
v_t *r = (v_t *)c[CODE_R];
|
||||||
const v_t *d = (const v_t *)dc;
|
const v_t *d = (const v_t *)dc;
|
||||||
const v_t * const dend = d + (dsize / sizeof (v_t));
|
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
|
* @rr RAIDZ row
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue