aboutsummaryrefslogtreecommitdiffstats
path: root/lib/raid6/recov_avx2.c
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2025-03-17 09:02:28 +0000
committerAndrew Morton <[email protected]>2025-07-10 05:57:54 +0000
commit1857fcc847443b0238cb64584b43d8c3a9049a0a (patch)
treefacc98106e54bfaaa4c769772f912aab58255c17 /lib/raid6/recov_avx2.c
parentscripts: gdb: move MNT_* constants to gdb-parsed (diff)
downloadkernel-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_avx2.c')
-rw-r--r--lib/raid6/recov_avx2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/raid6/recov_avx2.c b/lib/raid6/recov_avx2.c
index 4e8095403ee2..97d598d2535c 100644
--- a/lib/raid6/recov_avx2.c
+++ b/lib/raid6/recov_avx2.c
@@ -28,10 +28,10 @@ static void raid6_2data_recov_avx2(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);
@@ -196,7 +196,7 @@ static void raid6_datap_recov_avx2(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);