svn commit: r288168 - stable/9/sys/sys

Steven Hartland smh at FreeBSD.org
Thu Sep 24 09:35:36 UTC 2015


Author: smh
Date: Thu Sep 24 09:35:35 2015
New Revision: 288168
URL: https://svnweb.freebsd.org/changeset/base/288168

Log:
  MFC r287886:
  
  Fix kqueue write events for files > 2GB
  
  Relnotes:	YES
  Sponsored by:	Multiplay

Modified:
  stable/9/sys/sys/vnode.h
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/sys/   (props changed)

Modified: stable/9/sys/sys/vnode.h
==============================================================================
--- stable/9/sys/sys/vnode.h	Thu Sep 24 08:42:08 2015	(r288167)
+++ stable/9/sys/sys/vnode.h	Thu Sep 24 09:35:35 2015	(r288168)
@@ -768,7 +768,8 @@ void	vop_rename_fail(struct vop_rename_a
 
 #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)) {				\
@@ -776,7 +777,7 @@ void	vop_rename_fail(struct vop_rename_a
 		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)						\


More information about the svn-src-stable-9 mailing list