From 31b8aeb32e081f42e1ec7f34094de4351458aed3 Mon Sep 17 00:00:00 2001 From: Visa Hankala Date: Tue, 7 Apr 2020 13:27:53 +0000 Subject: Abstract the head of knote lists. This allows extending the lists, for example, with locking assertions. OK mpi@, anton@ --- sys/ufs/ufs/ufs_vnops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/ufs') 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 -- cgit v1.2.3