mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
Removing ZERO_PAGE abd_alloc_zero_scatter
For MIPS architectures on Linux the ZERO_PAGE macro references empty_zero_page, which is exported as a GPL symbol. The call to ZERO_PAGE in abd_alloc_zero_scatter has been removed and a single zero'd page is now allocated for each of the pages in abd_zero_scatter in the kernel ABD code path. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Brian Atkinson <batkinson@lanl.gov> Closes #10428
This commit is contained in:
@@ -42,7 +42,6 @@ typedef int abd_iter_func_t(void *buf, size_t len, void *priv);
|
||||
typedef int abd_iter_func2_t(void *bufa, void *bufb, size_t len, void *priv);
|
||||
|
||||
extern int zfs_abd_scatter_enabled;
|
||||
extern abd_t *abd_zero_scatter;
|
||||
|
||||
/*
|
||||
* Allocations and deallocations
|
||||
|
||||
@@ -92,6 +92,8 @@ struct abd_iter {
|
||||
struct scatterlist *iter_sg; /* current sg */
|
||||
};
|
||||
|
||||
extern abd_t *abd_zero_scatter;
|
||||
|
||||
abd_t *abd_gang_get_offset(abd_t *, size_t *);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user