diff options
-rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index de1db1c12080..ca6d8c806f47 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1130,9 +1130,9 @@ static inline int file_check_writeable(struct file *filp) | |||
1130 | /* Page cache limit. The filesystems should put that into their s_maxbytes | 1130 | /* Page cache limit. The filesystems should put that into their s_maxbytes |
1131 | limits, otherwise bad things can happen in VM. */ | 1131 | limits, otherwise bad things can happen in VM. */ |
1132 | #if BITS_PER_LONG==32 | 1132 | #if BITS_PER_LONG==32 |
1133 | #define MAX_LFS_FILESIZE (((u64)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1) | 1133 | #define MAX_LFS_FILESIZE (((loff_t)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1) |
1134 | #elif BITS_PER_LONG==64 | 1134 | #elif BITS_PER_LONG==64 |
1135 | #define MAX_LFS_FILESIZE 0x7fffffffffffffffUL | 1135 | #define MAX_LFS_FILESIZE ((loff_t)0x7fffffffffffffff) |
1136 | #endif | 1136 | #endif |
1137 | 1137 | ||
1138 | #define FL_POSIX 1 | 1138 | #define FL_POSIX 1 |