zfs_vnops: make zfs_get_data OS-independent
commitab8c935ea65e1a4d92311c9b84adc77047ba0b2f
authorChristian Schwarz <me@cschwarz.com>
Mon, 2 Nov 2020 20:07:07 +0000 (2 21:07 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Nov 2020 20:07:07 +0000 (2 12:07 -0800)
tree3d990fbeebf497d9379a83aea0f8cd7fbd5e2af9
parent09eb36ce3d98e0eeaeec9c333ac818b2bc3f85bf
zfs_vnops: make zfs_get_data OS-independent

Move zfs_get_data() in to platform-independent code. The only
platform-specific aspect of it is the way we release an inode
(Linux) / vnode_t (FreeBSD). I am not aware of a platform that
could be supported by ZFS that couldn't implement zfs_rele_async
itself. It's sibling zvol_get_data already is platform-independent.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Christian Schwarz <me@cschwarz.com>
Closes #10979
include/os/freebsd/zfs/sys/zfs_znode_impl.h
include/os/linux/zfs/sys/zfs_znode_impl.h
include/sys/zfs_vnops.h
module/os/freebsd/zfs/zfs_vfsops.c
module/os/freebsd/zfs/zfs_vnops_os.c
module/os/linux/zfs/zfs_vnops_os.c
module/zfs/zfs_vnops.c