The branch stable/14 has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=333e556683c40ef2d5fe3df3e005397ebca37eb4

commit 333e556683c40ef2d5fe3df3e005397ebca37eb4
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2025-07-07 12:51:24 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2026-08-05 15:15:15 +0000

    VOP_WRITE_POST(): correct condition for knote activation
    
    Fixes:  bc4430dc203ed7b6765fb5df041bf545c50f859b
    Reported by:    dhw, Oleg Nauman <[email protected]>
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 13a21c0c0e3db6e2c1a317031c7d1bf4651bec3d)
---
 sys/sys/vnode.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 75783a81225b..c8161c55b781 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -1045,7 +1045,7 @@ void      vop_rename_fail(struct vop_rename_args *ap);
 #define VOP_WRITE_POST(ap, ret)                                                
\
        noffset = (ap)->a_uio->uio_offset;                              \
        if (noffset > ooffset) {                                        \
-               if (VN_KNLIST_EMPTY((ap)->a_vp)) {                      \
+               if (!VN_KNLIST_EMPTY((ap)->a_vp)) {                     \
                        VFS_KNOTE_LOCKED((ap)->a_vp, NOTE_WRITE |       \
                            (noffset > osize ? NOTE_EXTEND : 0));       \
                }                                                       \

Reply via email to