]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Linux 4.20 compat: wrapper function for iov_iter type access
authorColeman Kane <ckane@colemankane.org>
Sun, 30 Jul 2023 19:23:47 +0000 (15:23 -0400)
committerTony Hutter <hutter2@llnl.gov>
Mon, 11 Sep 2023 23:20:50 +0000 (16:20 -0700)
commit5ee79af41fbee408f56a0aaf1cb4e53768ff61cf
tree10b58e195bc74ca26d9f4b79e59419567f7d6c63
parentfeb0fa6b38a2ab14dd1f717c77be0b3ebda06ff1
Linux 4.20 compat: wrapper function for iov_iter type access

An iov_iter_type() function to access the "type" member of the struct
iov_iter was added at one point. Move the conditional logic to decide
which method to use for accessing it into a macro and simplify the
zpl_uio_init code.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #15100
include/os/linux/spl/sys/uio.h
module/os/linux/zfs/zpl_file.c