mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01:00
Split out two new headers from the public pq.h: - lib/raid/raid6/algos.h contains the algorithm lists private to lib/raid/raid6 - include/linux/raid/pq_tables.h contains the tables also used by async_tx providers. The public include/linux/pq.h is now limited to the public interface for the consumers of the RAID6 PQ API. [[email protected]: remove duplicate ccflags-y line] Link: https://lore.kernel.org/[email protected] Link: https://lore.kernel.org/[email protected] Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Tested-by: Ard Biesheuvel <[email protected]> # kunit only on arm64 Cc: Albert Ou <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: Alexandre Ghiti <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: "Borislav Petkov (AMD)" <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Chris Mason <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: Dan Williams <[email protected]> Cc: David Sterba <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Herbert Xu <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Huacai Chen <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Li Nan <[email protected]> Cc: Madhavan Srinivasan <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Song Liu <[email protected]> Cc: Sven Schnelle <[email protected]> Cc: Vasily Gorbik <[email protected]> Cc: WANG Xuerui <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
25 lines
663 B
C
25 lines
663 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright 2003 H. Peter Anvin - All Rights Reserved
|
|
*
|
|
* Public interface to the RAID6 P/Q calculation and recovery library.
|
|
*/
|
|
#ifndef LINUX_RAID_PQ_H
|
|
#define LINUX_RAID_PQ_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define RAID6_MIN_DISKS 4
|
|
|
|
void raid6_gen_syndrome(int disks, size_t bytes, void **ptrs);
|
|
void raid6_xor_syndrome(int disks, int start, int stop, size_t bytes,
|
|
void **ptrs);
|
|
bool raid6_can_xor_syndrome(void);
|
|
|
|
void raid6_recov_2data(int disks, size_t bytes, int faila, int failb,
|
|
void **ptrs);
|
|
void raid6_recov_datap(int disks, size_t bytes, int faila,
|
|
void **ptrs);
|
|
|
|
#endif /* LINUX_RAID_PQ_H */
|