opnsense-src/sys/fs/nullfs
Mark Johnston fdd8f30b9f nullfs: Clear inotify flags during reclaim
The inotify flags are copied from the lower vnode into the nullfs vnode
so that the INOTIFY() macro will invoke VOP_INOTIFY on the nullfs vnode;
this is then bypassed to the lower vnode.  However, when a nullfs vnode
is reclaimed we should clear these flags, as the vnode is now doomed and
no longer forwards VOPs to the lower vnode.

Add regression tests.  Remove a test in vn_inotify_revoke() which is no
longer needed after this change.

Approved by:	re (cperciva)
PR:		292495
Reviewed by:	kib
Reported by:	Jed Laundry <jlaundry@jlaundry.com>
Fixes:		f1f230439f ("vfs: Initial revision of inotify")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56639

(cherry picked from commit a02d794f5acd12ba3cf1de5c204a8dd56af47edd)
(cherry picked from commit 10567c80b6845717306c5301d104e7440033c4f5)
2026-05-07 13:40:04 -07:00
..
null.h nullfs: add nounixbypass mount option 2025-10-16 05:22:20 +03:00
null_subr.c nullfs: add nounixbypass mount option 2025-10-16 05:22:20 +03:00
null_vfsops.c nullfs: Fix handling of doomed vnodes in nullfs_unlink_lowervp() 2026-03-31 15:57:29 +00:00
null_vnops.c nullfs: Clear inotify flags during reclaim 2026-05-07 13:40:04 -07:00