mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	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 <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@ixsystems.com> Closes #11973
This commit is contained in:
		
							parent
							
								
									910b43310f
								
							
						
					
					
						commit
						5701e393b7
					
				| @ -66,13 +66,8 @@ typedef	struct vop_vector	vnodeops_t; | |||||||
| #define	vop_fid_args	vop_vptofh_args | #define	vop_fid_args	vop_vptofh_args | ||||||
| #define	a_fid		a_fhp | #define	a_fid		a_fhp | ||||||
| 
 | 
 | ||||||
| #define	IS_XATTRDIR(dvp)	(0) |  | ||||||
| 
 |  | ||||||
| #define	v_count	v_usecount |  | ||||||
| 
 |  | ||||||
| #define	rootvfs		(rootvnode == NULL ? NULL : rootvnode->v_mount) | #define	rootvfs		(rootvnode == NULL ? NULL : rootvnode->v_mount) | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| #ifndef IN_BASE | #ifndef IN_BASE | ||||||
| static __inline int | static __inline int | ||||||
| vn_is_readonly(vnode_t *vp) | vn_is_readonly(vnode_t *vp) | ||||||
|  | |||||||
| @ -275,7 +275,7 @@ mount_snapshot(kthread_t *td, vnode_t **vpp, const char *fstype, char *fspath, | |||||||
| void | void | ||||||
| vn_rele_async(vnode_t *vp, taskq_t *taskq) | 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 (refcount_release_if_not_last(&vp->v_usecount)) { | ||||||
| #if __FreeBSD_version < 1300045 | #if __FreeBSD_version < 1300045 | ||||||
| 		vdrop(vp); | 		vdrop(vp); | ||||||
|  | |||||||
| @ -1593,7 +1593,7 @@ zfsvfs_teardown(zfsvfs_t *zfsvfs, boolean_t unmounting) | |||||||
| 	for (zp = list_head(&zfsvfs->z_all_znodes); zp != NULL; | 	for (zp = list_head(&zfsvfs->z_all_znodes); zp != NULL; | ||||||
| 	    zp = list_next(&zfsvfs->z_all_znodes, zp)) | 	    zp = list_next(&zfsvfs->z_all_znodes, zp)) | ||||||
| 		if (zp->z_sa_hdl) { | 		if (zp->z_sa_hdl) { | ||||||
| 			ASSERT(ZTOV(zp)->v_count >= 0); | 			ASSERT(ZTOV(zp)->v_usecount >= 0); | ||||||
| 			zfs_znode_dmu_fini(zp); | 			zfs_znode_dmu_fini(zp); | ||||||
| 		} | 		} | ||||||
| 	mutex_exit(&zfsvfs->z_znodes_lock); | 	mutex_exit(&zfsvfs->z_znodes_lock); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Ryan Moeller
						Ryan Moeller