diff options
author | jeff <jeff@FreeBSD.org> | 2002-09-25 02:42:43 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-09-25 02:42:43 +0000 |
commit | 76a1e2b647d38f81dd8f1568601975eb9dc6808b (patch) | |
tree | e97f5ff3887053e35e84a3fa4b9b2bcf5e8bcd63 /sys/dev/ccd | |
parent | 65328ea561634bf0c99b8694cae5d0ed7bd40d33 (diff) | |
download | FreeBSD-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.c | 2 |
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; } |