diff options
author | wu zhangjin <wuzhangjin@gmail.com> | 2010-10-30 11:19:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-30 11:19:35 -0400 |
commit | 504b701bb1655747575095543c083267418e02ac (patch) | |
tree | 2533953d8b2546ddb24cee560512d776c29e8815 /fs/compat.c | |
parent | 2d10d8737ccdba752d60106abbc6ed4f37404923 (diff) |
fs/compat.c: fix build on MIPS/s390
The definition of PAGE_CACHE_MASK in <linux/pagemap.h> is needed to use
MAX_RW_COUNT, and on x86-64 that gets done indirectly through the
architecture header includes. But on MIPS and s390 that doesn't happen,
and we need to make sure that fs/compat.c includes pagemap.h explicitly.
Introduced in commit 435f49a518c7 ("readv/writev: do the same
MAX_RW_COUNT truncation that read/write does").
Reported-by: Sachin Sant <sachinp@in.ibm.com> (S390)
Reported-by: wu zhangjin <wuzhangjin@gmail.com> (MIPS)
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/compat.c')
-rw-r--r-- | fs/compat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/compat.c b/fs/compat.c index ff66c0d7583d..c580c322fa6b 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include <linux/eventpoll.h> | 49 | #include <linux/eventpoll.h> |
50 | #include <linux/fs_struct.h> | 50 | #include <linux/fs_struct.h> |
51 | #include <linux/slab.h> | 51 | #include <linux/slab.h> |
52 | #include <linux/pagemap.h> | ||
52 | 53 | ||
53 | #include <asm/uaccess.h> | 54 | #include <asm/uaccess.h> |
54 | #include <asm/mmu_context.h> | 55 | #include <asm/mmu_context.h> |