mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
lib/raid6: drop RAID6_USE_EMPTY_ZERO_PAGE
RAID6_USE_EMPTY_ZERO_PAGE is unused and hardcoded to 0, so let's drop it. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Song Liu <song@kernel.org>
This commit is contained in:
parent
9487a0f685
commit
42271ca389
2 changed files with 0 additions and 10 deletions
|
@ -10,17 +10,9 @@
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
|
|
||||||
/* Set to 1 to use kernel-wide empty_zero_page */
|
|
||||||
#define RAID6_USE_EMPTY_ZERO_PAGE 0
|
|
||||||
#include <linux/blkdev.h>
|
#include <linux/blkdev.h>
|
||||||
|
|
||||||
/* We need a pre-zeroed page... if we don't want to use the kernel-provided
|
|
||||||
one define it here */
|
|
||||||
#if RAID6_USE_EMPTY_ZERO_PAGE
|
|
||||||
# define raid6_empty_zero_page empty_zero_page
|
|
||||||
#else
|
|
||||||
extern const char raid6_empty_zero_page[PAGE_SIZE];
|
extern const char raid6_empty_zero_page[PAGE_SIZE];
|
||||||
#endif
|
|
||||||
|
|
||||||
#else /* ! __KERNEL__ */
|
#else /* ! __KERNEL__ */
|
||||||
/* Used for testing in user space */
|
/* Used for testing in user space */
|
||||||
|
|
|
@ -18,12 +18,10 @@
|
||||||
#else
|
#else
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/gfp.h>
|
#include <linux/gfp.h>
|
||||||
#if !RAID6_USE_EMPTY_ZERO_PAGE
|
|
||||||
/* In .bss so it's zeroed */
|
/* In .bss so it's zeroed */
|
||||||
const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(256)));
|
const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(256)));
|
||||||
EXPORT_SYMBOL(raid6_empty_zero_page);
|
EXPORT_SYMBOL(raid6_empty_zero_page);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
struct raid6_calls raid6_call;
|
struct raid6_calls raid6_call;
|
||||||
EXPORT_SYMBOL_GPL(raid6_call);
|
EXPORT_SYMBOL_GPL(raid6_call);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue