powerpc: Wire up copy_file_range() syscall
authorChandan Rajendra <chandan@linux.vnet.ibm.com>
Wed, 13 Jan 2016 16:50:22 +0000 (22:20 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Jan 2016 03:10:55 +0000 (14:10 +1100)
Test runs on a ppc64 BE guest succeeded using modified fstests.

Also tested on ppc64 LE using a home made test - mpe.

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/systbl.h
arch/powerpc/include/asm/unistd.h
arch/powerpc/include/uapi/asm/unistd.h

index 5654ece02c0db5ee41da441c30d8a2c5f1cdcbc4..3fa9df70aa20dfa01e90eb1a6af06171a1d8fbde 100644 (file)
@@ -383,3 +383,4 @@ SYSCALL(ni_syscall)
 SYSCALL(ni_syscall)
 SYSCALL(ni_syscall)
 SYSCALL(mlock2)
+SYSCALL(copy_file_range)
index 6a5ace5fa0c8a8bbf83a73a5fca8fb0150d5d3e8..1f2594d456054262bd2bc4a9eef265c983971afa 100644 (file)
@@ -12,7 +12,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls            379
+#define NR_syscalls            380
 
 #define __NR__exit __NR_exit
 
index 12a05652377a28799a89ae59e3d38a7ddeaade92..940290d45b087220711cd0a508ae5c4223b21951 100644 (file)
 #define __NR_userfaultfd       364
 #define __NR_membarrier                365
 #define __NR_mlock2            378
+#define __NR_copy_file_range   379
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */