From: Chris Metcalf Date: Mon, 26 Mar 2012 20:26:12 +0000 (-0400) Subject: compat: use sys_sendfile64() implementation for sendfile syscall X-Git-Tag: v3.4-rc1~41^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1631fcea8399da5e80a80084b3b8c5bfd99d21e7;p=pandora-kernel.git compat: use sys_sendfile64() implementation for sendfile syscall 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: Acked-by: Arnd Bergmann Signed-off-by: Chris Metcalf --- Reading git-diff-tree failed