summaryrefslogtreecommitdiff
path: root/sys/tmpfs
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-04-07 13:27:53 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-04-07 13:27:53 +0000
commit31b8aeb32e081f42e1ec7f34094de4351458aed3 (patch)
tree620f7a0227efbc1b17d8b8e8b070acdf3c1c0436 /sys/tmpfs
parenta469bdd2f75259dda9613501bb83503033815c3c (diff)
Abstract the head of knote lists. This allows extending the lists,
for example, with locking assertions. OK mpi@, anton@
Diffstat (limited to 'sys/tmpfs')
-rw-r--r--sys/tmpfs/tmpfs_vnops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/tmpfs/tmpfs_vnops.c b/sys/tmpfs/tmpfs_vnops.c
index ec6c704be25..c7a40d10333 100644
--- a/sys/tmpfs/tmpfs_vnops.c
+++ b/sys/tmpfs/tmpfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmpfs_vnops.c,v 1.39 2020/02/20 16:56:52 visa Exp $ */
+/* $OpenBSD: tmpfs_vnops.c,v 1.40 2020/04/07 13:27:52 visa Exp $ */
/* $NetBSD: tmpfs_vnops.c,v 1.100 2012/11/05 17:27:39 dholland Exp $ */
/*
@@ -2631,7 +2631,7 @@ tmpfs_kqfilter(void *v)
kn->kn_hook = (caddr_t)vp;
- SLIST_INSERT_HEAD(&vp->v_selectinfo.si_note, kn, kn_selnext);
+ klist_insert(&vp->v_selectinfo.si_note, kn);
return (0);
}
@@ -2641,7 +2641,7 @@ filt_tmpfsdetach(struct knote *kn)
{
struct vnode *vp = (struct vnode *)kn->kn_hook;
- SLIST_REMOVE(&vp->v_selectinfo.si_note, kn, knote, kn_selnext);
+ klist_remove(&vp->v_selectinfo.si_note, kn);
}
int