diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2020-04-07 13:27:53 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2020-04-07 13:27:53 +0000 |
commit | 31b8aeb32e081f42e1ec7f34094de4351458aed3 (patch) | |
tree | 620f7a0227efbc1b17d8b8e8b070acdf3c1c0436 /sys/ufs | |
parent | a469bdd2f75259dda9613501bb83503033815c3c (diff) |
Abstract the head of knote lists. This allows extending the lists,
for example, with locking assertions.
OK mpi@, anton@
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index c623c9ba2a0..a651fa9f065 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufs_vnops.c,v 1.149 2020/02/27 09:10:31 mpi Exp $ */ +/* $OpenBSD: ufs_vnops.c,v 1.150 2020/04/07 13:27:52 visa Exp $ */ /* $NetBSD: ufs_vnops.c,v 1.18 1996/05/11 18:28:04 mycroft Exp $ */ /* @@ -1934,7 +1934,7 @@ ufs_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); } @@ -1944,7 +1944,7 @@ filt_ufsdetach(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 |