aboutsummaryrefslogtreecommitdiffstats
path: root/lib/raid6/recov_neon.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_neon.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_neon.c')
-rw-r--r--lib/raid6/recov_neon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/raid6/recov_neon.c b/lib/raid6/recov_neon.c
index 1bfc14174d4d..70e1404c1512 100644
--- a/lib/raid6/recov_neon.c
+++ b/lib/raid6/recov_neon.c
@@ -36,10 +36,10 @@ static void raid6_2data_recov_neon(int disks, size_t bytes, int faila,
* 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);
@@ -74,7 +74,7 @@ static void raid6_datap_recov_neon(int disks, size_t bytes, int faila,
* 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);