mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	FreeBSD: Return ifndef IN_BASE back to fix the build
FreeBSD's libprocstat seems to build kernel code in user space, which does not work here due to undefined vnode_t. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Martin Matuska <mm@FreeBSD.org> Signed-off-by:Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Closes #16808
This commit is contained in:
		
							parent
							
								
									027b3e06ed
								
							
						
					
					
						commit
						ae00c807dc
					
				| @ -91,6 +91,7 @@ vn_is_readonly(vnode_t *vp) | ||||
| 	((vp)->v_object != NULL && \ | ||||
| 	(vp)->v_object->resident_page_count > 0) | ||||
| 
 | ||||
| #ifndef IN_BASE | ||||
| static __inline void | ||||
| vn_flush_cached_data(vnode_t *vp, boolean_t sync) | ||||
| { | ||||
| @ -101,6 +102,7 @@ vn_flush_cached_data(vnode_t *vp, boolean_t sync) | ||||
| 		zfs_vmobject_wunlock(vp->v_object); | ||||
| 	} | ||||
| } | ||||
| #endif | ||||
| 
 | ||||
| #define	vn_exists(vp)		do { } while (0) | ||||
| #define	vn_invalid(vp)		do { } while (0) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Alexander Motin
						Alexander Motin