]> git.baikalelectronics.ru Git - kernel.git/commit
fs/compat.c: fix build on MIPS/s390
authorwu zhangjin <wuzhangjin@gmail.com>
Sat, 30 Oct 2010 15:19:35 +0000 (08:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 30 Oct 2010 15:19:35 +0000 (08:19 -0700)
commit50f73f1c90111058d3acb481c038844882669c1a
tree2533953d8b2546ddb24cee560512d776c29e8815
parent9e3ffd681d6bfaf42ffd684f09600a4b3fee6e28
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 7a0c73c5dded ("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>
fs/compat.c