diff options
author | Steven Hartland <smh@FreeBSD.org> | 2015-09-24 10:31:39 +0000 |
---|---|---|
committer | Steven Hartland <smh@FreeBSD.org> | 2015-09-24 10:31:39 +0000 |
commit | 5b71bfa7ef62922647a12caf0f5be11c11653fc9 (patch) | |
tree | e752b57f6075ca1f7d61160b981c0465c8e4aa49 | |
parent | 7503a2271dff4766273a4c6612ca39cbbbf0eb71 (diff) |
MFC r287886:
Fix kqueue write events for files > 2GB
Relnotes: YES
Sponsored by: Multiplay
Notes
Notes:
svn path=/stable/8/; revision=288169
-rw-r--r-- | sys/sys/vnode.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index ce58ee89f1bc..9510c8a0d738 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) \ |