aboutsummaryrefslogtreecommitdiffstats
path: root/include/os
diff options
context:
space:
mode:
authorColeman Kane <[email protected]>2023-07-23 01:34:29 -0400
committerBrian Behlendorf <[email protected]>2023-09-19 08:50:01 -0700
commit0bf2c5365ed3afa65545393d8da2317699f18b30 (patch)
tree4b7ba9914444cacc66d6695c9819b793cb9ec082 /include/os
parentd76de9fb170d58f81edac5729c365fc3fd60a22f (diff)
Linux 6.4 compat: iter_iov() function now used to get old iov member
The iov_iter->iov member is now iov_iter->__iov and must be accessed via the accessor function iter_iov(). Create a wrapper that is conditionally compiled to use the access method appropriate for the target kernel version. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Brian Atkinson <[email protected]> Signed-off-by: Coleman Kane <[email protected]> Closes #15100
Diffstat (limited to 'include/os')
-rw-r--r--include/os/linux/spl/sys/uio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/os/linux/spl/sys/uio.h b/include/os/linux/spl/sys/uio.h
index fe2b5c07a..082e930e4 100644
--- a/include/os/linux/spl/sys/uio.h
+++ b/include/os/linux/spl/sys/uio.h
@@ -173,4 +173,10 @@ zfs_uio_iov_iter_init(zfs_uio_t *uio, struct iov_iter *iter, offset_t offset,
}
#endif
+#if defined(HAVE_ITER_IOV)
+#define zfs_uio_iter_iov(iter) iter_iov((iter))
+#else
+#define zfs_uio_iter_iov(iter) (iter)->iov
+#endif
+
#endif /* SPL_UIO_H */