VOP_WRITE_POST(): correct condition for knote activation
Fixes: bc4430dc20
Reported by: dhw, Oleg Nauman <oleg.nauman@gmail.com>
Sponsored by: The FreeBSD Foundation
This commit is contained in:
+1
-1
@@ -1032,7 +1032,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)); \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user