summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_init.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2007-02-15 22:08:35 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2007-02-15 22:08:35 +0000
commit10bcafe9abdb866e20e561bf567f15c0a06a0114 (patch)
treed0649ac0ff4a69d709b0c801322ed78174e44d1c /sys/kern/vfs_init.c
parent233fcaed71e100aab87e94b9f579d3c23422d4db (diff)
Notes
Diffstat (limited to 'sys/kern/vfs_init.c')
-rw-r--r--sys/kern/vfs_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index 143eaf56c524..7b2aeefdb853 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -215,9 +215,13 @@ vfs_register(struct vfsconf *vfc)
if (vfsops->vfs_checkexp == NULL)
/* check if file system is exported */
vfsops->vfs_checkexp = vfs_stdcheckexp;
+#if __FreeBSD_version < 800000
if (vfsops->vfs_vptofh == NULL)
/* turn a vnode into an NFS file handle */
vfsops->vfs_vptofh = vfs_stdvptofh;
+#else
+#error Remove this code, vfs_vptofh was replaced with vop_vptofh.
+#endif
if (vfsops->vfs_init == NULL)
/* file system specific initialisation */
vfsops->vfs_init = vfs_stdinit;