diff --git a/sys/coda/coda_subr.c b/sys/coda/coda_subr.c index 19b18fdeb55f..7b761f4ccdf8 100644 --- a/sys/coda/coda_subr.c +++ b/sys/coda/coda_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: coda_subr.c,v 1.6 1998/10/28 19:54:50 rvb Exp $ */ +/* $NetBSD: coda_subr.c,v 1.7 1999/10/01 22:25:59 soren Exp $ */ /* * @@ -46,6 +46,9 @@ /* * HISTORY * $Log: coda_subr.c,v $ + * Revision 1.7 1999/10/01 22:25:59 soren + * Account for widened v_usecount in struct vnode. + * * Revision 1.6 1998/10/28 19:54:50 rvb * Venus must be passed O_CREAT flag on VOP_OPEN iff this is * a creat so that we can will allow a mode 444 file to be @@ -397,7 +400,7 @@ coda_kill(whoIam, dcstat) #endif count++; CODADEBUG(CODA_FLUSH, - myprintf(("Live cnode fid %lx.%lx.%lx flags %d count %d\n", + myprintf(("Live cnode fid %lx.%lx.%lx flags %d count %ld\n", (cp->c_fid).Volume, (cp->c_fid).Vnode, (cp->c_fid).Unique, @@ -447,7 +450,7 @@ coda_testflush(void) for (cp = coda_cache[hash]; cp != NULL; cp = CNODE_NEXT(cp)) { - myprintf(("Live cnode fid %lx.%lx.%lx count %d\n", + myprintf(("Live cnode fid %lx.%lx.%lx count %ld\n", (cp->c_fid).Volume,(cp->c_fid).Vnode, (cp->c_fid).Unique, CTOV(cp)->v_usecount)); } @@ -594,7 +597,7 @@ int handleDownCall(opcode, out) if (CTOV(cp)->v_flag & VTEXT) error = coda_vmflush(cp); CODADEBUG(CODA_ZAPFILE, myprintf(("zapfile: fid = (%lx.%lx.%lx), - refcnt = %d, error = %d\n", + refcnt = %ld, error = %d\n", cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique, @@ -622,7 +625,7 @@ int handleDownCall(opcode, out) coda_nc_zapParentfid(&out->coda_zapdir.CodaFid, IS_DOWNCALL); CODADEBUG(CODA_ZAPDIR, myprintf(("zapdir: fid = (%lx.%lx.%lx), - refcnt = %d\n",cp->c_fid.Volume, + refcnt = %ld\n",cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique, CTOV(cp)->v_usecount - 1));); @@ -656,7 +659,7 @@ int handleDownCall(opcode, out) error = coda_vmflush(cp); } - CODADEBUG(CODA_PURGEFID, myprintf(("purgefid: fid = (%lx.%lx.%lx), refcnt = %d, error = %d\n", + CODADEBUG(CODA_PURGEFID, myprintf(("purgefid: fid = (%lx.%lx.%lx), refcnt = %ld, error = %d\n", cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique, CTOV(cp)->v_usecount - 1, error));); diff --git a/sys/coda/coda_vnops.c b/sys/coda/coda_vnops.c index 9d818002fce5..8d789aa21842 100644 --- a/sys/coda/coda_vnops.c +++ b/sys/coda/coda_vnops.c @@ -6,7 +6,7 @@ mkdir rmdir symlink */ -/* $NetBSD: coda_vnops.c,v 1.12 1999/09/18 05:31:42 matt Exp $ */ +/* $NetBSD: coda_vnops.c,v 1.13 1999/10/01 22:26:00 soren Exp $ */ /* * @@ -56,6 +56,9 @@ symlink /* * HISTORY * $Log: coda_vnops.c,v $ + * Revision 1.13 1999/10/01 22:26:00 soren + * Account for widened v_usecount in struct vnode. + * * Revision 1.12 1999/09/18 05:31:42 matt * Make this compile on alpha again. * @@ -681,7 +684,7 @@ printf("coda_rdwr: Internally Opening %p\n", vp); } /* Have UFS handle the call. */ - CODADEBUG(CODA_RDWR, myprintf(("indirect rdwr: fid = (%lx.%lx.%lx), refcnt = %d\n", + CODADEBUG(CODA_RDWR, myprintf(("indirect rdwr: fid = (%lx.%lx.%lx), refcnt = %ld\n", cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique, CTOV(cp)->v_usecount)); ) @@ -1953,7 +1956,7 @@ printf("coda_readdir: Internally Opening %p\n", vp); } /* Have UFS handle the call. */ - CODADEBUG(CODA_READDIR, myprintf(("indirect readdir: fid = (%lx.%lx.%lx), refcnt = %d\n",cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique, vp->v_usecount)); ) + CODADEBUG(CODA_READDIR, myprintf(("indirect readdir: fid = (%lx.%lx.%lx), refcnt = %ld\n",cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique, vp->v_usecount)); ) error = VOP_READDIR(cp->c_ovp, uiop, cred, eofflag, cookies, ncookies); if (error)