summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-03-26 16:26:12 -0400
committerChris Metcalf <cmetcalf@tilera.com>2012-03-27 13:36:57 -0400
commit1631fcea8399da5e80a80084b3b8c5bfd99d21e7 (patch)
tree97dbf61e224142068842d1ab5391e8c46a950bba /arch/s390
parent48b25c43e6eebb6c0edf72935e8720385beca76b (diff)
downloadlinux-1631fcea8399da5e80a80084b3b8c5bfd99d21e7.tar.bz2
compat: use sys_sendfile64() implementation for sendfile syscall
<asm-generic/unistd.h> was set up to use sys_sendfile() for the 32-bit compat API instead of sys_sendfile64(), but in fact the right thing to do is to use sys_sendfile64() in all cases. The 32-bit sendfile64() API in glibc uses the sendfile64 syscall, so it has to be capable of doing full 64-bit operations. But the sys_sendfile() kernel implementation has a MAX_NON_LFS test in it which explicitly limits the offset to 2^32. So, we need to use the sys_sendfile64() implementation in the kernel for this case. Cc: <stable@kernel.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions