summaryrefslogtreecommitdiffstats
path: root/sys/dev/ccd
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-09-25 02:42:43 +0000
committerjeff <jeff@FreeBSD.org>2002-09-25 02:42:43 +0000
commit76a1e2b647d38f81dd8f1568601975eb9dc6808b (patch)
treee97f5ff3887053e35e84a3fa4b9b2bcf5e8bcd63 /sys/dev/ccd
parent65328ea561634bf0c99b8694cae5d0ed7bd40d33 (diff)
downloadFreeBSD-src-76a1e2b647d38f81dd8f1568601975eb9dc6808b.zip
FreeBSD-src-76a1e2b647d38f81dd8f1568601975eb9dc6808b.tar.gz
- Use vrefcnt() instead of v_usecount.
Diffstat (limited to 'sys/dev/ccd')
-rw-r--r--sys/dev/ccd/ccd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c
index d8e01be..888ae9d 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;
}
OpenPOWER on IntegriCloud