|
@@ -1130,9 +1130,9 @@ static inline int file_check_writeable(struct file *filp)
|
|
/* Page cache limit. The filesystems should put that into their s_maxbytes
|
|
/* Page cache limit. The filesystems should put that into their s_maxbytes
|
|
limits, otherwise bad things can happen in VM. */
|
|
limits, otherwise bad things can happen in VM. */
|
|
#if BITS_PER_LONG==32
|
|
#if BITS_PER_LONG==32
|
|
-#define MAX_LFS_FILESIZE (((u64)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1)
|
|
|
|
|
|
+#define MAX_LFS_FILESIZE (((loff_t)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1)
|
|
#elif BITS_PER_LONG==64
|
|
#elif BITS_PER_LONG==64
|
|
-#define MAX_LFS_FILESIZE 0x7fffffffffffffffUL
|
|
|
|
|
|
+#define MAX_LFS_FILESIZE ((loff_t)0x7fffffffffffffff)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#define FL_POSIX 1
|
|
#define FL_POSIX 1
|