FreeBSD: Add vop_standard_writecount_nomsync

https://cgit.freebsd.org/src/commit?id=3ffcfa599e29686cf2b3c1a6087408c37acaed78

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #12828
This commit is contained in:
Ryan Moeller 2021-12-10 14:15:27 +00:00 committed by Brian Behlendorf
parent cdf74673bc
commit 23cee221b7
2 changed files with 18 additions and 0 deletions

View File

@ -815,6 +815,9 @@ static struct vop_vector zfsctl_ops_root = {
.vop_vptocnp = zfsctl_root_vptocnp, .vop_vptocnp = zfsctl_root_vptocnp,
.vop_pathconf = zfsctl_common_pathconf, .vop_pathconf = zfsctl_common_pathconf,
.vop_getacl = zfsctl_common_getacl, .vop_getacl = zfsctl_common_getacl,
#if __FreeBSD_version >= 1400043
.vop_add_writecount = vop_stdadd_writecount_nomsync,
#endif
}; };
VFS_VOP_VECTOR_REGISTER(zfsctl_ops_root); VFS_VOP_VECTOR_REGISTER(zfsctl_ops_root);
@ -1134,6 +1137,9 @@ static struct vop_vector zfsctl_ops_snapdir = {
.vop_print = zfsctl_common_print, .vop_print = zfsctl_common_print,
.vop_pathconf = zfsctl_common_pathconf, .vop_pathconf = zfsctl_common_pathconf,
.vop_getacl = zfsctl_common_getacl, .vop_getacl = zfsctl_common_getacl,
#if __FreeBSD_version >= 1400043
.vop_add_writecount = vop_stdadd_writecount_nomsync,
#endif
}; };
VFS_VOP_VECTOR_REGISTER(zfsctl_ops_snapdir); VFS_VOP_VECTOR_REGISTER(zfsctl_ops_snapdir);
@ -1238,6 +1244,9 @@ static struct vop_vector zfsctl_ops_snapshot = {
.vop_islocked = vop_stdislocked, .vop_islocked = vop_stdislocked,
.vop_advlockpurge = vop_stdadvlockpurge, /* called by vgone */ .vop_advlockpurge = vop_stdadvlockpurge, /* called by vgone */
.vop_print = zfsctl_common_print, .vop_print = zfsctl_common_print,
#if __FreeBSD_version >= 1400043
.vop_add_writecount = vop_stdadd_writecount_nomsync,
#endif
}; };
VFS_VOP_VECTOR_REGISTER(zfsctl_ops_snapshot); VFS_VOP_VECTOR_REGISTER(zfsctl_ops_snapshot);

View File

@ -6189,6 +6189,9 @@ struct vop_vector zfs_vnodeops = {
.vop_unlock = vop_unlock, .vop_unlock = vop_unlock,
.vop_islocked = vop_islocked, .vop_islocked = vop_islocked,
#endif #endif
#if __FreeBSD_version >= 1400043
.vop_add_writecount = vop_stdadd_writecount_nomsync,
#endif
}; };
VFS_VOP_VECTOR_REGISTER(zfs_vnodeops); VFS_VOP_VECTOR_REGISTER(zfs_vnodeops);
@ -6213,6 +6216,9 @@ struct vop_vector zfs_fifoops = {
.vop_getacl = zfs_freebsd_getacl, .vop_getacl = zfs_freebsd_getacl,
.vop_setacl = zfs_freebsd_setacl, .vop_setacl = zfs_freebsd_setacl,
.vop_aclcheck = zfs_freebsd_aclcheck, .vop_aclcheck = zfs_freebsd_aclcheck,
#if __FreeBSD_version >= 1400043
.vop_add_writecount = vop_stdadd_writecount_nomsync,
#endif
}; };
VFS_VOP_VECTOR_REGISTER(zfs_fifoops); VFS_VOP_VECTOR_REGISTER(zfs_fifoops);
@ -6232,5 +6238,8 @@ struct vop_vector zfs_shareops = {
.vop_reclaim = zfs_freebsd_reclaim, .vop_reclaim = zfs_freebsd_reclaim,
.vop_fid = zfs_freebsd_fid, .vop_fid = zfs_freebsd_fid,
.vop_pathconf = zfs_freebsd_pathconf, .vop_pathconf = zfs_freebsd_pathconf,
#if __FreeBSD_version >= 1400043
.vop_add_writecount = vop_stdadd_writecount_nomsync,
#endif
}; };
VFS_VOP_VECTOR_REGISTER(zfs_shareops); VFS_VOP_VECTOR_REGISTER(zfs_shareops);