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/coda/coda_vnops.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'sys/fs/coda') diff --git a/sys/fs/coda/coda_vnops.c b/sys/fs/coda/coda_vnops.c index 9509115..30f62d3 100644 --- a/sys/fs/coda/coda_vnops.c +++ b/sys/fs/coda/coda_vnops.c @@ -266,13 +266,6 @@ coda_open(struct vop_open_args *ap) return (error); } /* grab (above) does this when it calls newvnode unless it's in the cache*/ - if (vp->v_type == VREG) { - error = VOP_CREATEVOBJECT(vp, cred, td); - if (error != 0) { - printf("coda_open: VOP_CREATEVOBJECT() returns %d\n", error); - vput(vp); - } - } return(error); } @@ -431,17 +424,6 @@ printf("coda_rdwr: Internally Opening %p\n", vp); printf("coda_rdwr: VOP_OPEN on container failed %d\n", error); return (error); } - if (vp->v_type == VREG) { - error = VOP_CREATEVOBJECT(vp, cred, td); - if (error != 0) { - printf("coda_rdwr: VOP_CREATEVOBJECT() returns %d\n", error); - vput(vp); - } - } - if (error) { - MARK_INT_FAIL(CODA_RDWR_STATS); - return(error); - } cfvp = cp->c_ovp; } } @@ -1562,14 +1544,6 @@ printf("coda_readdir: Internally Opening %p\n", vp); printf("coda_readdir: VOP_OPEN on container failed %d\n", error); return (error); } - if (vp->v_type == VREG) { - error = VOP_CREATEVOBJECT(vp, cred, td); - if (error != 0) { - printf("coda_readdir: VOP_CREATEVOBJECT() returns %d\n", error); - vput(vp); - } - } - if (error) return(error); } /* Have UFS handle the call. */ -- cgit v1.1