]> Cypherpunks repositories - gostls13.git/commit
syscall: correct argument order for SyncFileRange syscall on linux/ppc64{,le}
authorTobias Klauser <tklauser@distanz.ch>
Tue, 4 Sep 2018 12:19:53 +0000 (14:19 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Wed, 5 Sep 2018 10:03:43 +0000 (10:03 +0000)
commiteee1cfb0b292847d037f57457b3392f67c7bf9a2
tree1ed76aaa549573356a17b34c15803f6df00cea33
parentd7fc2205d44e5cc2b1b0161bc71084e8f5eea54e
syscall: correct argument order for SyncFileRange syscall on linux/ppc64{,le}

On linux/ppc64{,le} the SYS_SYNC_FILE_RANGE2 syscall is used to
implement SyncFileRange. This syscall has a different argument order
than SYS_SYNC_FILE_RANGE. Apart from that the implementations of both
syscalls are the same, so use a simple wrapper to invoke the syscall
with the correct argument order.

For context see:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=edd5cd4a9424f22b0fa08bef5e299d41befd5622

Updates #27485

Change-Id: Ib94fb98376bf6c879df6f1b68c3bdd11ebcb5a44
Reviewed-on: https://go-review.googlesource.com/133195
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/syscall/syscall_linux_ppc64x.go
src/syscall/zsyscall_linux_ppc64.go
src/syscall/zsyscall_linux_ppc64le.go