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 435f49a518 ("readv/writev: do the same
MAX_RW_COUNT truncation that read/write does").

Reported-by: Sachin Sant <[email protected]> (S390)
Reported-by: wu zhangjin <[email protected]> (MIPS)
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
wu zhangjin 2010-10-30 08:19:35 -07:00 • committed by Linus Torvalds
commit 504b701bb1

View file

@ -49,6 +49,7 @@
#include <linux/eventpoll.h>
#include <linux/fs_struct.h>
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <asm/uaccess.h>
#include <asm/mmu_context.h>