diff options
author | 2020-05-13 08:13:42 +0000 | |
---|---|---|
committer | 2020-05-13 08:13:42 +0000 | |
commit | a9ad03770601eba687d48cf524e36951bc0a7aae (patch) | |
tree | ebcf69b30106b4612d8bef76828458d2ae2a3042 /sys/miscfs | |
parent | Match direct `seltrue' usages with a corresponding `seltrue_kqfilter'. (diff) | |
download | wireguard-openbsd-a9ad03770601eba687d48cf524e36951bc0a7aae.tar.xz wireguard-openbsd-a9ad03770601eba687d48cf524e36951bc0a7aae.zip |
Use seltrue_kqfilter() instead of hand-rolling it in multiple drivers.
ok visa@
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/fuse/fuse_device.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/miscfs/fuse/fuse_device.c b/sys/miscfs/fuse/fuse_device.c index af0a77f44c2..33d16a15a9b 100644 --- a/sys/miscfs/fuse/fuse_device.c +++ b/sys/miscfs/fuse/fuse_device.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse_device.c,v 1.33 2020/04/07 13:27:51 visa Exp $ */ +/* $OpenBSD: fuse_device.c,v 1.34 2020/05/13 08:13:42 mpi Exp $ */ /* * Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com> * @@ -76,13 +76,6 @@ const static struct filterops fuse_rd_filtops = { .f_event = filt_fuse_read, }; -const static struct filterops fuse_seltrue_filtops = { - .f_flags = FILTEROP_ISFD, - .f_attach = NULL, - .f_detach = filt_fuse_rdetach, - .f_event = filt_seltrue, -}; - #ifdef FUSE_DEBUG static void fuse_dump_buff(char *buff, int len) @@ -555,9 +548,7 @@ fusekqfilter(dev_t dev, struct knote *kn) kn->kn_fop = &fuse_rd_filtops; break; case EVFILT_WRITE: - klist = &fd->fd_rsel.si_note; - kn->kn_fop = &fuse_seltrue_filtops; - break; + return (seltrue_kqfilter(dev, kn)); default: return (EINVAL); } |