summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRich Ercolani <[email protected]>2022-01-14 05:07:33 -0500
committerTony Hutter <[email protected]>2022-02-04 08:33:52 -0800
commit70b7b1975d70c80f9294efbf6964cfed236cf59f (patch)
tree80c1125c3cd6ae4935792247ed8819f915ffa51c /include
parentc31c1146b6d795f305f7e09a3de13bcdd66f2ac4 (diff)
Linux 5.16 compat: Added mapping for iov_iter_fault_in_readable
Linux decided to rename this for some reason. At some point, we should probably invert this mapping, but for now... Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Coleman Kane <[email protected]> Signed-off-by: Rich Ercolani <[email protected]> Closes #12975
Diffstat (limited to 'include')
-rw-r--r--include/os/linux/spl/sys/uio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/os/linux/spl/sys/uio.h b/include/os/linux/spl/sys/uio.h
index 66af2b0b5..439eec986 100644
--- a/include/os/linux/spl/sys/uio.h
+++ b/include/os/linux/spl/sys/uio.h
@@ -34,6 +34,10 @@
#include <asm/uaccess.h>
#include <sys/types.h>
+#if defined(HAVE_VFS_IOV_ITER) && defined(HAVE_FAULT_IN_IOV_ITER_READABLE)
+#define iov_iter_fault_in_readable(a, b) fault_in_iov_iter_readable(a, b)
+#endif
+
typedef struct iovec iovec_t;
typedef enum zfs_uio_rw {