diff options
| author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2007-02-16 17:32:41 +0000 |
|---|---|---|
| committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2007-02-16 17:32:41 +0000 |
| commit | 2c7b0f41ece5ea3d841f41e355f336ab563c49ae (patch) | |
| tree | 3feaebd85a017ad78a5fe55b3bbd00e00cfb98e7 /sys/kern | |
| parent | eb62f845539c8429f3ab4fdfe338e70e444d023c (diff) | |
Notes
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/vfs_default.c | 15 | ||||
| -rw-r--r-- | sys/kern/vfs_init.c | 7 |
2 files changed, 1 insertions, 21 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 92d920ac167d..cc636a2bc55e 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -515,7 +515,7 @@ vop_stdputpages(ap) int vop_stdvptofh(struct vop_vptofh_args *ap) { - return VFS_VPTOFH(ap->a_vp, ap->a_fhp); + return (EOPNOTSUPP); } /* @@ -543,19 +543,6 @@ vfs_stdstatfs (mp, sbp, td) return (EOPNOTSUPP); } -#if __FreeBSD_version < 800000 -int -vfs_stdvptofh (vp, fhp) - struct vnode *vp; - struct fid *fhp; -{ - - return (EOPNOTSUPP); -} -#else -#error Remove this code, vfs_vptofh was replaced with vop_vptofh. -#endif - int vfs_stdquotactl (mp, cmds, uid, arg, td) struct mount *mp; diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index 7b2aeefdb853..3ce65ed900de 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -215,13 +215,6 @@ 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; |
