Skip to content

Commit ae00c80

Browse files
amotinbehlendorf
authored andcommitted
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 <[email protected]> Reviewed-by: Martin Matuska <[email protected]> Signed-off-by:Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #16808
1 parent 027b3e0 commit ae00c80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/os/freebsd/spl/sys/vnode.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ vn_is_readonly(vnode_t *vp)
9191
((vp)->v_object != NULL && \
9292
(vp)->v_object->resident_page_count > 0)
9393

94+
#ifndef IN_BASE
9495
static __inline void
9596
vn_flush_cached_data(vnode_t *vp, boolean_t sync)
9697
{
@@ -101,6 +102,7 @@ vn_flush_cached_data(vnode_t *vp, boolean_t sync)
101102
zfs_vmobject_wunlock(vp->v_object);
102103
}
103104
}
105+
#endif
104106

105107
#define vn_exists(vp) do { } while (0)
106108
#define vn_invalid(vp) do { } while (0)

0 commit comments

Comments
 (0)