mirror_zfs/module/os/freebsd/zfs
Christian Schwarz 1dccfd7a38
zvol: make calls to platform ops static
There's no need to make the platform ops dynamic dispatch.

This change replaces the dynamic dispatch with static calls to the
platform-specific functions.
To avoid name collisions, prefix all platform-specific functions
with `zvol_os_`.
I actually find `zvol_..._os` slightly nicer to read in the calling
code, but having it as a prefix is useful.

Advantage:
- easier jump-to-definition / grepping
- potential benefits to static analysis
- better legibility

Future work: also prefix remaining `static` functions in zvol_os.c.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Christian Schwarz <christian.schwarz@nutanix.com>
Closes #12965
2022-02-07 10:24:38 -08:00
..
abd_os.c module/*.ko: prune .data, global .rodata 2022-01-14 15:37:55 -08:00
arc_os.c Clean up CSTYLEDs 2022-01-26 11:38:52 -08:00
crypto_os.c module/*.ko: prune .data, global .rodata 2022-01-14 15:37:55 -08:00
dmu_os.c Remove FreeBSD's local copy of the dmu_buf_hold_array() function 2021-10-13 11:01:01 -07:00
hkdf.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
kmod_core.c zfs: add missed dependency of zfs module on zlib 2021-08-13 13:42:45 -07:00
spa_os.c module: zfs: freebsd: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
sysctl_os.c Clean up CSTYLEDs 2022-01-26 11:38:52 -08:00
vdev_file.c module/*.ko: prune .data, global .rodata 2022-01-14 15:37:55 -08:00
vdev_geom.c Clean up CSTYLEDs 2022-01-26 11:38:52 -08:00
vdev_label_os.c FreeBSD: Clean up ASSERT/VERIFY use in module 2021-04-30 16:36:10 -07:00
zfs_acl.c module/*.ko: prune .data, global .rodata 2022-01-14 15:37:55 -08:00
zfs_ctldir.c Replace *CTASSERT() with _Static_assert() 2022-01-26 11:38:52 -08:00
zfs_debug.c Clean up CSTYLEDs 2022-01-26 11:38:52 -08:00
zfs_dir.c Clean up use of zfs_log_create in zfs_dir 2021-05-07 15:13:10 -07:00
zfs_file_os.c FreeBSD: Catch up with recent VFS changes 2021-10-25 09:46:28 -07:00
zfs_ioctl_compat.c FreeBSD: Fix legacy compat for platform IOCs 2020-09-30 13:25:50 -07:00
zfs_ioctl_os.c libzfs: On FreeBSD, use MNT_NOWAIT with getfsstat 2021-06-08 07:36:43 -06:00
zfs_racct.c module: zfs: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
zfs_vfsops.c Replace *CTASSERT() with _Static_assert() 2022-01-26 11:38:52 -08:00
zfs_vnops_os.c Replace *CTASSERT() with _Static_assert() 2022-01-26 11:38:52 -08:00
zfs_znode.c FreeBSD: remove unused variable 2022-01-06 12:46:49 -08:00
zio_crypt.c Clean up CSTYLEDs 2022-01-26 11:38:52 -08:00
zvol_os.c zvol: make calls to platform ops static 2022-02-07 10:24:38 -08:00