diff options
author | Ryan Moeller <[email protected]> | 2021-04-30 10:34:53 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-30 07:34:53 -0700 |
commit | 801c76149bab8598c3cd1a6689e1893ec2f91deb (patch) | |
tree | 8475199cf1d944b56118c96f34e4c202a9f8730b /module/os | |
parent | 6f4e132fece3343ae62c3b0f79450fef2504f9cd (diff) |
FreeBSD: Prune some unneeded definitions
IS_XATTRDIR is never used.
v_count is only used in two places, one immediately followed by the
use of the real name, v_usecount.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #11973
Diffstat (limited to 'module/os')
-rw-r--r-- | module/os/freebsd/spl/spl_vfs.c | 2 | ||||
-rw-r--r-- | module/os/freebsd/zfs/zfs_vfsops.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/module/os/freebsd/spl/spl_vfs.c b/module/os/freebsd/spl/spl_vfs.c index 09c840126..54d3dce31 100644 --- a/module/os/freebsd/spl/spl_vfs.c +++ b/module/os/freebsd/spl/spl_vfs.c @@ -275,7 +275,7 @@ mount_snapshot(kthread_t *td, vnode_t **vpp, const char *fstype, char *fspath, void vn_rele_async(vnode_t *vp, taskq_t *taskq) { - VERIFY(vp->v_count > 0); + VERIFY(vp->v_usecount > 0); if (refcount_release_if_not_last(&vp->v_usecount)) { #if __FreeBSD_version < 1300045 vdrop(vp); diff --git a/module/os/freebsd/zfs/zfs_vfsops.c b/module/os/freebsd/zfs/zfs_vfsops.c index a537342f9..79beddea8 100644 --- a/module/os/freebsd/zfs/zfs_vfsops.c +++ b/module/os/freebsd/zfs/zfs_vfsops.c @@ -1593,7 +1593,7 @@ zfsvfs_teardown(zfsvfs_t *zfsvfs, boolean_t unmounting) for (zp = list_head(&zfsvfs->z_all_znodes); zp != NULL; zp = list_next(&zfsvfs->z_all_znodes, zp)) if (zp->z_sa_hdl) { - ASSERT(ZTOV(zp)->v_count >= 0); + ASSERT(ZTOV(zp)->v_usecount >= 0); zfs_znode_dmu_fini(zp); } mutex_exit(&zfsvfs->z_znodes_lock); |