summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_default.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-01-25 00:42:16 +0000
committerphk <phk@FreeBSD.org>2005-01-25 00:42:16 +0000
commit32b3eaa1c223378ae1ccb8a55f146356bf59bcf3 (patch)
treef5b97270998eefa88e922235ffacce7eeef8ec28 /sys/kern/vfs_default.c
parent796d435574629a3a293e13d786e313d9d473a134 (diff)
downloadFreeBSD-src-32b3eaa1c223378ae1ccb8a55f146356bf59bcf3.zip
FreeBSD-src-32b3eaa1c223378ae1ccb8a55f146356bf59bcf3.tar.gz
Take VOP_GETVOBJECT() out to pasture. We use the direct pointer now.
Diffstat (limited to 'sys/kern/vfs_default.c')
-rw-r--r--sys/kern/vfs_default.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c
index ff53c75..1798a9e 100644
--- a/sys/kern/vfs_default.c
+++ b/sys/kern/vfs_default.c
@@ -80,7 +80,6 @@ struct vop_vector default_vnodeops = {
.vop_destroyvobject = vop_stddestroyvobject,
.vop_fsync = VOP_NULL,
.vop_getpages = vop_stdgetpages,
- .vop_getvobject = vop_stdgetvobject,
.vop_getwritemount = vop_stdgetwritemount,
.vop_inactive = vop_stdinactive,
.vop_ioctl = VOP_ENOTTY,
@@ -396,29 +395,6 @@ vop_stddestroyvobject(ap)
return (0);
}
-/*
- * Return the underlying VM object. This routine may be called with or
- * without the vnode interlock held. If called without, the returned
- * object is not guarenteed to be valid. The syncer typically gets the
- * object without holding the interlock in order to quickly test whether
- * it might be dirty before going heavy-weight. vm_object's use zalloc
- * and thus stable-storage, so this is safe.
- */
-int
-vop_stdgetvobject(ap)
- struct vop_getvobject_args /* {
- struct vnode *vp;
- struct vm_object **objpp;
- } */ *ap;
-{
- struct vnode *vp = ap->a_vp;
- struct vm_object **objpp = ap->a_objpp;
-
- if (objpp)
- *objpp = vp->v_object;
- return (vp->v_object ? 0 : EINVAL);
-}
-
/* XXX Needs good comment and VOP_BMAP(9) manpage */
int
vop_stdbmap(ap)
OpenPOWER on IntegriCloud