From b0be93e81a4ace96a799d3705da6832633eb4325 Mon Sep 17 00:00:00 2001 From: Isaac Huang Date: Wed, 31 Aug 2016 00:26:43 -0600 Subject: ABD page support to vdev_disk.c Signed-off-by: Isaac Huang --- include/sys/abd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/sys/abd.h') diff --git a/include/sys/abd.h b/include/sys/abd.h index 43aaa7a15..6e3530aec 100644 --- a/include/sys/abd.h +++ b/include/sys/abd.h @@ -32,6 +32,7 @@ #include #ifdef _KERNEL #include +#include #include #endif @@ -112,6 +113,12 @@ int abd_cmp(abd_t *, abd_t *); int abd_cmp_buf_off(abd_t *, const void *, size_t, size_t); void abd_zero_off(abd_t *, size_t, size_t); +#if defined(_KERNEL) && defined(HAVE_SPL) +unsigned int abd_scatter_bio_map_off(struct bio *, abd_t *, unsigned int, + size_t); +unsigned long abd_nr_pages_off(abd_t *, unsigned int, size_t); +#endif + /* * Wrappers for calls with offsets of 0 */ -- cgit v1.2.3