summaryrefslogtreecommitdiffstats
path: root/sys/dev/ccd
diff options
context:
space:
mode:
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