MAX_LFS_FILESIZE definition for 64bit needs LL...
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 10 Oct 2012 05:06:20 +0000 (01:06 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 10 Oct 2012 05:06:20 +0000 (01:06 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/fs.h

index b7e7060..ec911ae 100644 (file)
@@ -1132,7 +1132,7 @@ static inline int file_check_writeable(struct file *filp)
 #if BITS_PER_LONG==32
 #define MAX_LFS_FILESIZE       (((loff_t)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1) 
 #elif BITS_PER_LONG==64
-#define MAX_LFS_FILESIZE       ((loff_t)0x7fffffffffffffff)
+#define MAX_LFS_FILESIZE       ((loff_t)0x7fffffffffffffffLL)
 #endif
 
 #define FL_POSIX       1