diff --git a/include/os/linux/spl/sys/uio.h b/include/os/linux/spl/sys/uio.h index fac26079d7..e51152b889 100644 --- a/include/os/linux/spl/sys/uio.h +++ b/include/os/linux/spl/sys/uio.h @@ -26,8 +26,12 @@ #ifndef _SPL_UIO_H #define _SPL_UIO_H +#include #include #include +#include +#include +#include #include #include diff --git a/include/sys/abd.h b/include/sys/abd.h index b781be4da7..82b73589bb 100644 --- a/include/sys/abd.h +++ b/include/sys/abd.h @@ -29,11 +29,7 @@ #include #include #include -#ifdef _KERNEL -#include -#include #include -#endif #ifdef __cplusplus extern "C" { @@ -56,8 +52,13 @@ typedef struct abd { union { struct abd_scatter { uint_t abd_offset; +#if defined(__FreeBSD__) && defined(_KERNEL) + uint_t abd_chunk_size; + void *abd_chunks[]; +#else uint_t abd_nents; struct scatterlist *abd_sgl; +#endif } abd_scatter; struct abd_linear { void *abd_buf; diff --git a/include/sys/dmu.h b/include/sys/dmu.h index 24cbb2f7a6..e497d21c9c 100644 --- a/include/sys/dmu.h +++ b/include/sys/dmu.h @@ -847,7 +847,6 @@ void dmu_write_by_dnode(dnode_t *dn, uint64_t offset, uint64_t size, void dmu_prealloc(objset_t *os, uint64_t object, uint64_t offset, uint64_t size, dmu_tx_t *tx); #ifdef _KERNEL -#include int dmu_read_uio(objset_t *os, uint64_t object, struct uio *uio, uint64_t size); int dmu_read_uio_dbuf(dmu_buf_t *zdb, struct uio *uio, uint64_t size); int dmu_read_uio_dnode(dnode_t *dn, struct uio *uio, uint64_t size); diff --git a/include/sys/zfs_project.h b/include/sys/zfs_project.h index 52d5204a69..81a2389052 100644 --- a/include/sys/zfs_project.h +++ b/include/sys/zfs_project.h @@ -32,7 +32,7 @@ #endif #endif -#include +#include #ifdef FS_PROJINHERIT_FL #define ZFS_PROJINHERIT_FL FS_PROJINHERIT_FL diff --git a/include/sys/zio.h b/include/sys/zio.h index 23a4a6ea93..9326030d05 100644 --- a/include/sys/zio.h +++ b/include/sys/zio.h @@ -500,6 +500,7 @@ struct zio { zio_gang_node_t *io_gang_tree; void *io_executor; void *io_waiter; + void *io_bio; kmutex_t io_lock; kcondvar_t io_cv; int io_allocator;