Skip to contentSkip to conversation

review: fix i386 build

DISCUSSION David Chinner 1 participant 1 message Jun 7, 2007

lore
Share & tools
lore
#0 lore raw

Don't use type-unsafe macros.

Cheers,

Dave.

Signature · 21 lines
Dave Chinner
Principal Engineer
SGI Australian Software Group


---
 fs/xfs/dmapi/xfs_dm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: 2.6.x-xfs-new/fs/xfs/dmapi/xfs_dm.c
===================================================================
--- 2.6.x-xfs-new.orig/fs/xfs/dmapi/xfs_dm.c	2007-06-06 15:55:00.000000000 +1000
+++ 2.6.x-xfs-new/fs/xfs/dmapi/xfs_dm.c	2007-06-06 15:56:00.613530262 +1000
@@ -2654,7 +2654,7 @@ xfs_dm_punch_hole(
 	 * make sure we punch the block and not just zero it.
 	 */
 	if (punch_to_eof)
-		len = roundup((realsize - off), bsize);
+		len = roundup_64((realsize - off), bsize);
 
 	xfs_iunlock(xip, XFS_ILOCK_EXCL);