aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2005-02-07 09:23:34 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2005-02-07 09:23:34 +0000
commit61f9cf813fc0c874a739eae539259599dac029a2 (patch)
treeb941b47207c2af4927ec9a6d97fa5088f3573888 /sys
parentdcb5d8f848a894f03295d8d848703a5e809d4a43 (diff)
downloadsrc-61f9cf813fc0c874a739eae539259599dac029a2.tar.gz
src-61f9cf813fc0c874a739eae539259599dac029a2.zip
Remove vop_destroyvobject()
Notes
Notes: svn path=/head/; revision=141447
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/nullfs/null_vnops.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c
index edabd5d02ef1..9049e6278dc2 100644
--- a/sys/fs/nullfs/null_vnops.c
+++ b/sys/fs/nullfs/null_vnops.c
@@ -329,19 +329,6 @@ null_bypass(struct vop_generic_args *ap)
return (error);
}
-static int
-null_close(struct vop_close_args *ap)
-{
- int retval;
- struct vnode *vp;
-
- vp = ap->a_vp;
- retval = null_bypass(&ap->a_gen);
- if (retval == 0)
- vp->v_object = NULL;
- return (retval);
-}
-
/*
* We have to carry on the locking protocol on the null layer vnodes
* as we progress through the tree. We also have to enforce read-only
@@ -709,6 +696,7 @@ null_inactive(struct vop_inactive_args *ap)
struct vnode *vp = ap->a_vp;
struct thread *td = ap->a_td;
+ vp->v_object = NULL;
VOP_UNLOCK(vp, 0, td);
/*
@@ -754,18 +742,6 @@ null_print(struct vop_print_args *ap)
}
/*
- * We have nothing to destroy and this operation shouldn't be bypassed.
- */
-static int
-null_destroyvobject(struct vop_destroyvobject_args *ap)
-{
- struct vnode *vp = ap->a_vp;
-
- vp->v_object = NULL;
- return (0);
-}
-
-/*
* Global vfs data structures
*/
struct vop_vector null_vnodeops = {
@@ -773,8 +749,6 @@ struct vop_vector null_vnodeops = {
.vop_access = null_access,
.vop_bmap = VOP_EOPNOTSUPP,
- .vop_close = null_close,
- .vop_destroyvobject = null_destroyvobject,
.vop_getattr = null_getattr,
.vop_getwritemount = vop_stdgetwritemount,
.vop_inactive = null_inactive,