From 40041f3610014bc88489a7f26c2452c460a89e10 Mon Sep 17 00:00:00 2001 From: smh Date: Thu, 24 Sep 2015 10:31:39 +0000 Subject: [PATCH] MFC r287886: Fix kqueue write events for files > 2GB Relnotes: YES Sponsored by: Multiplay git-svn-id: svn://svn.freebsd.org/base/stable/8@288169 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/sys/vnode.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index ce58ee89f..9510c8a0d 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -742,7 +742,8 @@ void vop_rename_fail(struct vop_rename_args *ap); #define VOP_WRITE_PRE(ap) \ struct vattr va; \ - int error, osize, ooffset, noffset; \ + int error; \ + off_t osize, ooffset, noffset; \ \ osize = ooffset = noffset = 0; \ if (!VN_KNLIST_EMPTY((ap)->a_vp)) { \ @@ -750,7 +751,7 @@ void vop_rename_fail(struct vop_rename_args *ap); if (error) \ return (error); \ ooffset = (ap)->a_uio->uio_offset; \ - osize = va.va_size; \ + osize = (off_t)va.va_size; \ } #define VOP_WRITE_POST(ap, ret) \ -- 2.42.0