diff options
author | Martin Matuška <[email protected]> | 2021-11-15 17:07:39 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-11-15 09:07:39 -0700 |
commit | b8dcfb2c9ff35fabcfe9dffa58278c7e14b18088 (patch) | |
tree | c08c8dd17d821cf243e1778788dfb4226dd7c400 /include/os | |
parent | 8ac58c3f567a87cc9b69d89cd18754b5dcf20cfc (diff) |
FreeBSD: fix world build after de198f2d9
The inline function vn_flush_cached_data() in vnode.h
must not be compiled when building BASE.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Allan Jude <[email protected]>
Signed-off-by: Martin Matuska <[email protected]>
Closes #12743
Diffstat (limited to 'include/os')
-rw-r--r-- | include/os/freebsd/spl/sys/vnode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/os/freebsd/spl/sys/vnode.h b/include/os/freebsd/spl/sys/vnode.h index 3bc8a18ee..1ac595aa1 100644 --- a/include/os/freebsd/spl/sys/vnode.h +++ b/include/os/freebsd/spl/sys/vnode.h @@ -86,6 +86,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) { @@ -100,6 +101,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) |