summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-01-24 23:54:45 +0000
committerphk <phk@FreeBSD.org>2005-01-24 23:54:45 +0000
commitde52eef1bf3676f0efd048f333dc0c5b7ebed495 (patch)
tree0b8aa4c3818ec4a7e1af9452fb7be50aa3345fe9 /sys/fs/nullfs
parent716e67e4292c3e3a48c81b109049e9cd7c14295a (diff)
downloadFreeBSD-src-de52eef1bf3676f0efd048f333dc0c5b7ebed495.zip
FreeBSD-src-de52eef1bf3676f0efd048f333dc0c5b7ebed495.tar.gz
Don't implement vop_createvobject(), vop_open() and vop_close() manages
this for nullfs now.
Diffstat (limited to 'sys/fs/nullfs')
-rw-r--r--sys/fs/nullfs/null_vnops.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c
index 856671c..ba6f43d 100644
--- a/sys/fs/nullfs/null_vnops.c
+++ b/sys/fs/nullfs/null_vnops.c
@@ -753,24 +753,6 @@ null_print(struct vop_print_args *ap)
}
/*
- * Let an underlying filesystem do the work
- */
-static int
-null_createvobject(struct vop_createvobject_args *ap)
-{
- struct vnode *vp = ap->a_vp;
- struct vnode *lowervp = VTONULL(vp) ? NULLVPTOLOWERVP(vp) : NULL;
- int error;
-
- if (vp->v_type == VNON || lowervp == NULL)
- return 0;
- error = VOP_CREATEVOBJECT(lowervp, ap->a_cred, ap->a_td);
- if (error)
- return (error);
- return (0);
-}
-
-/*
* We have nothing to destroy and this operation shouldn't be bypassed.
*/
static int
@@ -801,7 +783,6 @@ struct vop_vector null_vnodeops = {
.vop_access = null_access,
.vop_bmap = VOP_EOPNOTSUPP,
.vop_close = null_close,
- .vop_createvobject = null_createvobject,
.vop_destroyvobject = null_destroyvobject,
.vop_getattr = null_getattr,
.vop_getvobject = null_getvobject,
OpenPOWER on IntegriCloud