diff options
author | Brian Atkinson <[email protected]> | 2021-02-20 21:16:50 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-20 20:16:50 -0800 |
commit | c0801bf35a09623a8f4422530550266c9fa143b5 (patch) | |
tree | b9bd7c99600ccc1c07733bb5ba563843730aa523 /module/os/freebsd/spl | |
parent | 52cb284f7b7e2e8eb389c2f62d133ca4e4d38832 (diff) |
Cleaning up uio headers
Making uio_impl.h the common header interface between Linux and FreeBSD
so both OS's can share a common header file. This also helps reduce code
duplication for zfs_uio_t for each OS.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Brian Atkinson <[email protected]>
Closes #11622
Diffstat (limited to 'module/os/freebsd/spl')
-rw-r--r-- | module/os/freebsd/spl/spl_uio.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/module/os/freebsd/spl/spl_uio.c b/module/os/freebsd/spl/spl_uio.c index f5f3524f7..59a781ee1 100644 --- a/module/os/freebsd/spl/spl_uio.c +++ b/module/os/freebsd/spl/spl_uio.c @@ -41,10 +41,17 @@ */ #include <sys/param.h> -#include <sys/uio.h> +#include <sys/uio_impl.h> #include <sys/vnode.h> #include <sys/zfs_znode.h> +int +zfs_uiomove(void *cp, size_t n, zfs_uio_rw_t dir, zfs_uio_t *uio) +{ + ASSERT(zfs_uio_rw(uio) == dir); + return (uiomove(cp, (int)n, GET_UIO_STRUCT(uio))); +} + /* * same as zfs_uiomove() but doesn't modify uio structure. * return in cbytes how many bytes were copied. |