From 716e67e4292c3e3a48c81b109049e9cd7c14295a Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 24 Jan 2005 23:53:54 +0000 Subject: Don't call VOP_CREATEVOBJECT(), it's the responsibility of the filesystem which owns the vnode. --- sys/fs/unionfs/union_subr.c | 10 ---------- sys/fs/unionfs/union_vnops.c | 6 ------ 2 files changed, 16 deletions(-) (limited to 'sys/fs/unionfs') diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c index 78a469b..6cc5e62 100644 --- a/sys/fs/unionfs/union_subr.c +++ b/sys/fs/unionfs/union_subr.c @@ -781,8 +781,6 @@ union_copyup(un, docopy, cred, td) */ vn_lock(lvp, LK_EXCLUSIVE | LK_RETRY, td); error = VOP_OPEN(lvp, FREAD, cred, td, -1); - if (error == 0 && vn_canvmio(lvp) == TRUE) - error = VOP_CREATEVOBJECT(lvp, cred, td); if (error == 0) { error = union_copyfile(lvp, uvp, cred, td); VOP_UNLOCK(lvp, 0, td); @@ -813,10 +811,6 @@ union_copyup(un, docopy, cred, td) (void) VOP_CLOSE(lvp, FREAD, cred, td); (void) VOP_OPEN(uvp, FREAD, cred, td, -1); } - if (un->un_openl) { - if (vn_canvmio(uvp) == TRUE) - error = VOP_CREATEVOBJECT(uvp, cred, td); - } un->un_openl = 0; } @@ -1127,8 +1121,6 @@ union_vn_create(vpp, un, td) return (error); error = VOP_OPEN(vp, fmode, cred, td, -1); - if (error == 0 && vn_canvmio(vp) == TRUE) - error = VOP_CREATEVOBJECT(vp, cred, td); if (error) { vput(vp); return (error); @@ -1330,8 +1322,6 @@ union_dircheck(struct thread *td, struct vnode **vp, struct file *fp) if (lvp != NULLVP) { error = VOP_OPEN(lvp, FREAD, fp->f_cred, td, -1); - if (error == 0 && vn_canvmio(lvp) == TRUE) - error = VOP_CREATEVOBJECT(lvp, fp->f_cred, td); if (error) { vput(lvp); return (error); diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c index 8094b06..a1f3988 100644 --- a/sys/fs/unionfs/union_vnops.c +++ b/sys/fs/unionfs/union_vnops.c @@ -783,12 +783,6 @@ union_open(ap) error = VOP_OPEN(tvp, mode, cred, td, -1); /* - * This is absolutely necessary or UFS will blow up. - */ - if (error == 0 && vn_canvmio(tvp) == TRUE) - error = VOP_CREATEVOBJECT(tvp, cred, td); - - /* * Release any locks held. */ if (tvpisupper) { -- cgit v1.1