summaryrefslogtreecommitdiffstats
path: root/sys/coda/coda_vnops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/coda/coda_vnops.c')
-rw-r--r--sys/coda/coda_vnops.c26
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. */
OpenPOWER on IntegriCloud