]> git.baikalelectronics.ru Git - kernel.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)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Jun 2014 03:20:38 +0000 (13:20 +1000)
commit846ef85df8f363f37bb6a2983976e1e7b7dc5242
tree42df1bb235b21b3db2a6b7b3ebe33ce672ff19b1
parentce934e6b362694a87dc5469c387a82eb244b4546
powerpc: 64bit sendfile is capped at 2GB

commit 24addd15c6bb (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.

Cc: stable@vger.kernel.org
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/systbl.h