diff options
author | jeff <jeff@FreeBSD.org> | 2002-09-25 02:33:29 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-09-25 02:33:29 +0000 |
commit | d168f755f99bb0772204d5a6106672c073805d5d (patch) | |
tree | 0e05a08d55d1536f0fe052fae64ff4e828b5c555 /sys/fs/coda/coda_subr.c | |
parent | f7e588347b3192f4351b4e27c498cc085021b6e4 (diff) | |
download | FreeBSD-src-d168f755f99bb0772204d5a6106672c073805d5d.zip FreeBSD-src-d168f755f99bb0772204d5a6106672c073805d5d.tar.gz |
- Use vrefcnt() instead of directly accessing v_usecount.
Diffstat (limited to 'sys/fs/coda/coda_subr.c')
-rw-r--r-- | sys/fs/coda/coda_subr.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/fs/coda/coda_subr.c b/sys/fs/coda/coda_subr.c index 8afe57d..53c4346 100644 --- a/sys/fs/coda/coda_subr.c +++ b/sys/fs/coda/coda_subr.c @@ -224,7 +224,7 @@ coda_kill(whoIam, dcstat) (cp->c_fid).Vnode, (cp->c_fid).Unique, cp->c_flags, - CTOV(cp)->v_usecount)); ); + vrefcnt(CTOV(cp)))); ); } } } @@ -271,7 +271,7 @@ coda_testflush(void) cp = CNODE_NEXT(cp)) { myprintf(("Live cnode fid %lx.%lx.%lx count %d\n", (cp->c_fid).Volume,(cp->c_fid).Vnode, - (cp->c_fid).Unique, CTOV(cp)->v_usecount)); + (cp->c_fid).Unique, vrefcnt(CTOV(cp)))); } } } @@ -419,8 +419,8 @@ int handleDownCall(opcode, out) CODADEBUG(CODA_ZAPFILE, myprintf(( "zapfile: fid = (%lx.%lx.%lx), refcnt = %d, error = %d\n", cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique, - CTOV(cp)->v_usecount - 1, error));); - if (CTOV(cp)->v_usecount == 1) { + vrefcnt(CTOV(cp)) - 1, error));); + if (vrefcnt(CTOV(cp)) == 1) { cp->c_flags |= C_PURGING; } vrele(CTOV(cp)); @@ -445,8 +445,8 @@ int handleDownCall(opcode, out) CODADEBUG(CODA_ZAPDIR, myprintf(( "zapdir: fid = (%lx.%lx.%lx), refcnt = %d\n", cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique, - CTOV(cp)->v_usecount - 1));); - if (CTOV(cp)->v_usecount == 1) { + vrefcnt(CTOV(cp)) - 1));); + if (vrefcnt(CTOV(cp)) == 1) { cp->c_flags |= C_PURGING; } vrele(CTOV(cp)); @@ -480,8 +480,8 @@ int handleDownCall(opcode, out) CODADEBUG(CODA_PURGEFID, myprintf(("purgefid: fid = (%lx.%lx.%lx), refcnt = %d, error = %d\n", cp->c_fid.Volume, cp->c_fid.Vnode, cp->c_fid.Unique, - CTOV(cp)->v_usecount - 1, error));); - if (CTOV(cp)->v_usecount == 1) { + vrefcnt(CTOV(cp)) - 1, error));); + if (vrefcnt(CTOV(cp)) == 1) { cp->c_flags |= C_PURGING; } vrele(CTOV(cp)); |