summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_default.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2019-12-27 22:17:02 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2019-12-27 22:17:02 +0000
commit33ad1a1da24788653be88ffd41975064bf272066 (patch)
treeed750af33958c479f256a6e52c5da9422b60987c /sys/kern/vfs_default.c
parent0db4eb515e073e144ee200f0ace92318dea9ac2d (diff)
Convert the speclisth hash buckets into SLIST macros. This makes
the vnode alias code more readable. OK visa@
Diffstat (limited to 'sys/kern/vfs_default.c')
-rw-r--r--sys/kern/vfs_default.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c
index 7b6a58f8f1d..92fbd818636 100644
--- a/sys/kern/vfs_default.c
+++ b/sys/kern/vfs_default.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_default.c,v 1.44 2019/12/08 12:29:42 mpi Exp $ */
+/* $OpenBSD: vfs_default.c,v 1.45 2019/12/27 22:17:01 bluhm Exp $ */
/*
* Portions of this code are:
@@ -98,7 +98,7 @@ vop_generic_revoke(void *v)
*/
vp->v_flag |= VXLOCK;
while (vp->v_flag & VALIASED) {
- for (vq = *vp->v_hashchain; vq; vq = vq->v_specnext) {
+ SLIST_FOREACH(vq, vp->v_hashchain, v_specnext) {
if (vq->v_rdev != vp->v_rdev ||
vq->v_type != vp->v_type || vp == vq)
continue;