Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Aug 2026 15:16:25 +0000
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Cc:        Konstantin Belousov <kib@FreeBSD.org>
Subject:   git: 333e556683c4 - stable/14 - VOP_WRITE_POST(): correct condition for knote activation
Message-ID:  <6a7353c9.4638d.5c310a0e@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by markj:

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

commit 333e556683c40ef2d5fe3df3e005397ebca37eb4
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-07-07 12:51:24 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-08-05 15:15:15 +0000

    VOP_WRITE_POST(): correct condition for knote activation
    
    Fixes:  bc4430dc203ed7b6765fb5df041bf545c50f859b
    Reported by:    dhw, Oleg Nauman <oleg.nauman@gmail.com>
    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));	\
 		}							\


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a7353c9.4638d.5c310a0e>