From 3700faa528088087a8bf52f9abdb444f8ccf7d59 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Mon, 24 Sep 2012 14:51:48 -0400 Subject: [PATCH] --- yaml --- r: 329027 b: refs/heads/master c: 2bd2c1941f141ad780135ccc1cd08ca71a24f10a h: refs/heads/master i: 329025: 56db182ea66a58b2a9b38cd9f4b09970cc14a57b 329023: fbe1fc4e5a5ce555c667ba10254ce69bfb6c210e v: v3 --- [refs] | 2 +- trunk/include/linux/fs.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 52361ef5dc65..b9e2c42a3ce2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8f9c0119d7ba94c3ad13876acc240d7f12b6d8e1 +refs/heads/master: 2bd2c1941f141ad780135ccc1cd08ca71a24f10a diff --git a/trunk/include/linux/fs.h b/trunk/include/linux/fs.h index de1db1c12080..ca6d8c806f47 100644 --- a/trunk/include/linux/fs.h +++ b/trunk/include/linux/fs.h @@ -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 limits, otherwise bad things can happen in VM. */ #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 -#define MAX_LFS_FILESIZE 0x7fffffffffffffffUL +#define MAX_LFS_FILESIZE ((loff_t)0x7fffffffffffffff) #endif #define FL_POSIX 1