Don't implement vop_createvobject(), vop_open() and vop_close() manages

this for nullfs now.
This commit is contained in:
Poul-Henning Kamp 2005-01-24 23:54:45 +00:00
parent dcff5b1440
commit 2a967a99c3

View File

@ -752,24 +752,6 @@ null_print(struct vop_print_args *ap)
return (0);
}
/*
* 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.
*/
@ -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,