Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/vfs_subr.c
Show First 20 Lines • Show All 6,010 Lines • ▼ Show 20 Lines | filt_fsdetach(struct knote *kn) | ||||
knlist_remove(&fs_knlist, kn, 0); | knlist_remove(&fs_knlist, kn, 0); | ||||
} | } | ||||
static int | static int | ||||
filt_fsevent(struct knote *kn, long hint) | filt_fsevent(struct knote *kn, long hint) | ||||
{ | { | ||||
kn->kn_fflags |= hint; | kn->kn_fflags |= kn->kn_sfflags & hint; | ||||
kib: Stylish `(kn->kn_sfflags & hint) != 0` | |||||
Done Inline ActionsBut then shouldn't this be kn->kn_fflags |= kn->kn_sfflags & hint; ? kib: But then shouldn't this be
```
kn->kn_fflags |= kn->kn_sfflags & hint;
```
? | |||||
Done Inline Actionsnow that you mention it, that does read better.. rew: now that you mention it, that does read better.. | |||||
return (kn->kn_fflags != 0); | return (kn->kn_fflags != 0); | ||||
} | } | ||||
static int | static int | ||||
sysctl_vfs_ctl(SYSCTL_HANDLER_ARGS) | sysctl_vfs_ctl(SYSCTL_HANDLER_ARGS) | ||||
{ | { | ||||
struct vfsidctl vc; | struct vfsidctl vc; | ||||
int error; | int error; | ||||
▲ Show 20 Lines • Show All 893 Lines • Show Last 20 Lines |
Stylish (kn->kn_sfflags & hint) != 0