diff options
Diffstat (limited to 'include/linux/fs.h')
-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 706dd3a972d2..0e10ba08ef7a 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -908,9 +908,9 @@ static inline struct file *get_file(struct file *f) | |||
908 | /* Page cache limit. The filesystems should put that into their s_maxbytes | 908 | /* Page cache limit. The filesystems should put that into their s_maxbytes |
909 | limits, otherwise bad things can happen in VM. */ | 909 | limits, otherwise bad things can happen in VM. */ |
910 | #if BITS_PER_LONG==32 | 910 | #if BITS_PER_LONG==32 |
911 | #define MAX_LFS_FILESIZE (((loff_t)PAGE_SIZE << (BITS_PER_LONG-1))-1) | 911 | #define MAX_LFS_FILESIZE ((loff_t)ULONG_MAX << PAGE_SHIFT) |
912 | #elif BITS_PER_LONG==64 | 912 | #elif BITS_PER_LONG==64 |
913 | #define MAX_LFS_FILESIZE ((loff_t)0x7fffffffffffffffLL) | 913 | #define MAX_LFS_FILESIZE ((loff_t)LLONG_MAX) |
914 | #endif | 914 | #endif |
915 | 915 | ||
916 | #define FL_POSIX 1 | 916 | #define FL_POSIX 1 |