summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorBrian Atkinson <[email protected]>2020-06-10 18:54:11 -0600
committerGitHub <[email protected]>2020-06-10 17:54:11 -0700
commite08b993396692c227f576dd789280663103d3332 (patch)
tree30e6271424b22ad66eaa400ce16c0956416b30e9 /include/sys
parent059f7c20e3d410efb48aacce42abf47df316bee4 (diff)
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 <[email protected]> Signed-off-by: Brian Atkinson <[email protected]> Closes #10428
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/abd.h1
-rw-r--r--include/sys/abd_impl.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/sys/abd.h b/include/sys/abd.h
index 3b490005c..dad048af5 100644
--- a/include/sys/abd.h
+++ b/include/sys/abd.h
@@ -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
diff --git a/include/sys/abd_impl.h b/include/sys/abd_impl.h
index 23eec9ad5..b1fa87b42 100644
--- a/include/sys/abd_impl.h
+++ b/include/sys/abd_impl.h
@@ -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 *);
/*