diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2002-09-25 02:42:43 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2002-09-25 02:42:43 +0000 |
| commit | 37ab0e0d814e4b071d6f602b58556380d091f4b1 (patch) | |
| tree | e97f5ff3887053e35e84a3fa4b9b2bcf5e8bcd63 /sys | |
| parent | 0fa89fc7d91dc73ca0bd7cdda02239a082aa5d2b (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/ccd/ccd.c | 2 | ||||
| -rw-r--r-- | sys/fs/cd9660/cd9660_node.c | 4 | ||||
| -rw-r--r-- | sys/geom/geom_ccd.c | 2 | ||||
| -rw-r--r-- | sys/isofs/cd9660/cd9660_node.c | 4 | ||||
| -rw-r--r-- | sys/security/lomac/lomacfs_vnops.c | 8 |
5 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index d8e01be045345..888ae9d16f3e3 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/ccd.c @@ -1605,7 +1605,7 @@ ccdlookup(char *path, struct thread *td, struct vnode **vpp) } vp = nd.ni_vp; - if (vp->v_usecount > 1) { + if (vrefcnt(vp) > 1) { error = EBUSY; goto bad; } diff --git a/sys/fs/cd9660/cd9660_node.c b/sys/fs/cd9660/cd9660_node.c index e837f76940144..44e60fae48255 100644 --- a/sys/fs/cd9660/cd9660_node.c +++ b/sys/fs/cd9660/cd9660_node.c @@ -182,7 +182,7 @@ cd9660_inactive(ap) register struct iso_node *ip = VTOI(vp); int error = 0; - if (prtactive && vp->v_usecount != 0) + if (prtactive && vrefcnt(vp) != 0) vprint("cd9660_inactive: pushing active", vp); ip->i_flag = 0; @@ -209,7 +209,7 @@ cd9660_reclaim(ap) register struct vnode *vp = ap->a_vp; register struct iso_node *ip = VTOI(vp); - if (prtactive && vp->v_usecount != 0) + if (prtactive && vrefcnt(vp) != 0) vprint("cd9660_reclaim: pushing active", vp); /* * Remove the inode from its hash chain. diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index d8e01be045345..888ae9d16f3e3 100644 --- a/sys/geom/geom_ccd.c +++ b/sys/geom/geom_ccd.c @@ -1605,7 +1605,7 @@ ccdlookup(char *path, struct thread *td, struct vnode **vpp) } vp = nd.ni_vp; - if (vp->v_usecount > 1) { + if (vrefcnt(vp) > 1) { error = EBUSY; goto bad; } diff --git a/sys/isofs/cd9660/cd9660_node.c b/sys/isofs/cd9660/cd9660_node.c index e837f76940144..44e60fae48255 100644 --- a/sys/isofs/cd9660/cd9660_node.c +++ b/sys/isofs/cd9660/cd9660_node.c @@ -182,7 +182,7 @@ cd9660_inactive(ap) register struct iso_node *ip = VTOI(vp); int error = 0; - if (prtactive && vp->v_usecount != 0) + if (prtactive && vrefcnt(vp) != 0) vprint("cd9660_inactive: pushing active", vp); ip->i_flag = 0; @@ -209,7 +209,7 @@ cd9660_reclaim(ap) register struct vnode *vp = ap->a_vp; register struct iso_node *ip = VTOI(vp); - if (prtactive && vp->v_usecount != 0) + if (prtactive && vrefcnt(vp) != 0) vprint("cd9660_reclaim: pushing active", vp); /* * Remove the inode from its hash chain. diff --git a/sys/security/lomac/lomacfs_vnops.c b/sys/security/lomac/lomacfs_vnops.c index cc9e4f9fe4349..c40faa0d48ba2 100644 --- a/sys/security/lomac/lomacfs_vnops.c +++ b/sys/security/lomac/lomacfs_vnops.c @@ -114,7 +114,7 @@ lomacfs_inactive( const char *name = "[unknown]"; #endif printf("lomacfs: inactive(%p \"%s\"), lvp usecount down to %u\n", - vp, name, lvp->v_usecount); + vp, name, vrefcnt(lvp)); } while (0); #endif /* @@ -124,7 +124,7 @@ lomacfs_inactive( * Additionally, devices should be totally freed * on last close, not lazily. */ - if (lvp->v_usecount == 0 && + if (vrefcnt(lvp) == 0 && (lvp->v_type != VREG && lvp->v_type != VDIR)) { vdrop(lvp); VTOLVP(vp) = NULL; @@ -155,7 +155,7 @@ lomacfs_reclaim( const char *name = "[unknown]"; #endif printf("lomacfs: reclaim(%p \"%s\"), lvp usecount down to %u\n", - vp, name, lvp->v_usecount); + vp, name, vrefcnt(lvp)); } #endif if (lvp != NULL) @@ -298,7 +298,7 @@ lomacfs_lookup( const char *name = "[unknown]"; #endif printf("lomacfs: lookup(%p \"%s\"), lvp usecount up to %u\n", - vp, name, VTOLVP(vp)->v_usecount); + vp, name, vrefcnt(VTOLVP(vp))); } #endif return (error); |
