diff options
author | phk <phk@FreeBSD.org> | 2005-01-24 23:53:54 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-01-24 23:53:54 +0000 |
commit | 716e67e4292c3e3a48c81b109049e9cd7c14295a (patch) | |
tree | e520ce1bbad4ddf753d1d89b02119844f76cc362 /sys/coda | |
parent | 3aef1b3f6e28eb52883baffa23736c0c07437526 (diff) | |
download | FreeBSD-src-716e67e4292c3e3a48c81b109049e9cd7c14295a.zip FreeBSD-src-716e67e4292c3e3a48c81b109049e9cd7c14295a.tar.gz |
Don't call VOP_CREATEVOBJECT(), it's the responsibility of the
filesystem which owns the vnode.
Diffstat (limited to 'sys/coda')
-rw-r--r-- | sys/coda/coda_vnops.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/coda/coda_vnops.c b/sys/coda/coda_vnops.c index 9509115..30f62d3 100644 --- a/sys/coda/coda_vnops.c +++ b/sys/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. */ |