diff options
| author | Herbert Xu <[email protected]> | 2025-03-17 09:02:28 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-07-10 05:57:54 +0000 |
| commit | 1857fcc847443b0238cb64584b43d8c3a9049a0a (patch) | |
| tree | facc98106e54bfaaa4c769772f912aab58255c17 /lib/raid6/recov.c | |
| parent | scripts: gdb: move MNT_* constants to gdb-parsed (diff) | |
| download | kernel-1857fcc847443b0238cb64584b43d8c3a9049a0a.tar.gz kernel-1857fcc847443b0238cb64584b43d8c3a9049a0a.zip | |
lib/raid6: replace custom zero page with ZERO_PAGE
Use the system-wide zero page instead of a custom zero page.
[[email protected]: update lib/raid6/recov_rvv.c, per Klara]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Herbert Xu <[email protected]>
Cc: Song Liu <[email protected]>
Cc: Yu Kuai <[email protected]>
Cc: Klara Modin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/raid6/recov.c')
| -rw-r--r-- | lib/raid6/recov.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/raid6/recov.c b/lib/raid6/recov.c index a7c1b2bbe40d..b5e47c008b41 100644 --- a/lib/raid6/recov.c +++ b/lib/raid6/recov.c @@ -31,10 +31,10 @@ static void raid6_2data_recov_intx1(int disks, size_t bytes, int faila, Use the dead data pages as temporary storage for delta p and delta q */ dp = (u8 *)ptrs[faila]; - ptrs[faila] = (void *)raid6_empty_zero_page; + ptrs[faila] = raid6_get_zero_page(); ptrs[disks-2] = dp; dq = (u8 *)ptrs[failb]; - ptrs[failb] = (void *)raid6_empty_zero_page; + ptrs[failb] = raid6_get_zero_page(); ptrs[disks-1] = dq; raid6_call.gen_syndrome(disks, bytes, ptrs); @@ -72,7 +72,7 @@ static void raid6_datap_recov_intx1(int disks, size_t bytes, int faila, /* Compute syndrome with zero for the missing data page Use the dead data page as temporary storage for delta q */ dq = (u8 *)ptrs[faila]; - ptrs[faila] = (void *)raid6_empty_zero_page; + ptrs[faila] = raid6_get_zero_page(); ptrs[disks-1] = dq; raid6_call.gen_syndrome(disks, bytes, ptrs); |
