]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc: 64bit sendfile is capped at 2GB
authorAnton Blanchard <anton@samba.org>
Wed, 4 Jun 2014 00:48:48 +0000 (10:48 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2014 01:57:28 +0000 (18:57 -0700)
commit501b47e98b9f3de5a0aeba828d8339d47a1a936c
tree85a14b4f8a83458878f7de9e53c997120f5c34d6
parent9b459adb5f448938007cdf210492a1aeee355939
powerpc: 64bit sendfile is capped at 2GB

commit 5d73320a96fcce80286f1447864c481b5f0b96fa upstream.

commit 8f9c0119d7ba (compat: fs: Generic compat_sys_sendfile
implementation) changed the PowerPC 64bit sendfile call from
sys_sendile64 to sys_sendfile.

Unfortunately this broke sendfile of lengths greater than 2G because
sys_sendfile caps at MAX_NON_LFS. Restore what we had previously which
fixes the bug.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/systbl.h