All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: Wire up copy_file_range() syscall
@ 2016-01-13 16:50 Chandan Rajendra
  2016-01-13 22:53 ` Michael Ellerman
  2016-01-21  5:34 ` Michael Ellerman
  0 siblings, 2 replies; 4+ messages in thread
From: Chandan Rajendra @ 2016-01-13 16:50 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Chandan Rajendra, chandan

Test runs on a ppc64 BE guest succeeded.

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
---
The "yet to be upstreamed" fstests test
(https://github.com/chandanr/xfstests/commit/c2ce6196711e02792b434448e29f45b5f9a955f6)
was used to test the syscall. The test in turn depends on the usage of xfs_io's
copy_file_range command.
(https://github.com/chandanr/xfsprogs-dev/commit/9222b48a3d03fb9d690323b460d882e559bd1080)
I will post these patches to the respective mailing lists once this patch is
mainlined.

 arch/powerpc/include/asm/systbl.h      | 1 +
 arch/powerpc/include/asm/unistd.h      | 2 +-
 arch/powerpc/include/uapi/asm/unistd.h | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
index 5654ece..3fa9df7 100644
--- a/arch/powerpc/include/asm/systbl.h
+++ b/arch/powerpc/include/asm/systbl.h
@@ -383,3 +383,4 @@ SYSCALL(ni_syscall)
 SYSCALL(ni_syscall)
 SYSCALL(ni_syscall)
 SYSCALL(mlock2)
+SYSCALL(copy_file_range)
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h
index 6a5ace5..1f2594d 100644
--- a/arch/powerpc/include/asm/unistd.h
+++ b/arch/powerpc/include/asm/unistd.h
@@ -12,7 +12,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls		379
+#define NR_syscalls		380
 
 #define __NR__exit __NR_exit
 
diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h
index 12a0565..940290d 100644
--- a/arch/powerpc/include/uapi/asm/unistd.h
+++ b/arch/powerpc/include/uapi/asm/unistd.h
@@ -389,5 +389,6 @@
 #define __NR_userfaultfd	364
 #define __NR_membarrier		365
 #define __NR_mlock2		378
+#define __NR_copy_file_range	379
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] powerpc: Wire up copy_file_range() syscall
  2016-01-13 16:50 [PATCH] powerpc: Wire up copy_file_range() syscall Chandan Rajendra
@ 2016-01-13 22:53 ` Michael Ellerman
  2016-01-14  4:10   ` Chandan Rajendra
  2016-01-21  5:34 ` Michael Ellerman
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Ellerman @ 2016-01-13 22:53 UTC (permalink / raw)
  To: Chandan Rajendra, linuxppc-dev; +Cc: chandan

On Wed, 2016-01-13 at 22:20 +0530, Chandan Rajendra wrote:

> Test runs on a ppc64 BE guest succeeded.

Were the tests built 64-bit or 32-bit?

cheers

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] powerpc: Wire up copy_file_range() syscall
  2016-01-13 22:53 ` Michael Ellerman
@ 2016-01-14  4:10   ` Chandan Rajendra
  0 siblings, 0 replies; 4+ messages in thread
From: Chandan Rajendra @ 2016-01-14  4:10 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linuxppc-dev, chandan

On Thursday 14 Jan 2016 09:53:31 Michael Ellerman wrote:
> On Wed, 2016-01-13 at 22:20 +0530, Chandan Rajendra wrote:
> > Test runs on a ppc64 BE guest succeeded.
> 
> Were the tests built 64-bit or 32-bit?
> 

The test tool (xfs_io to be precise) was built as a 64-bit binary.

-- 
chandan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: powerpc: Wire up copy_file_range() syscall
  2016-01-13 16:50 [PATCH] powerpc: Wire up copy_file_range() syscall Chandan Rajendra
  2016-01-13 22:53 ` Michael Ellerman
@ 2016-01-21  5:34 ` Michael Ellerman
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2016-01-21  5:34 UTC (permalink / raw)
  To: Chandan Rajendra, linuxppc-dev; +Cc: chandan, Chandan Rajendra

On Wed, 2016-13-01 at 16:50:22 UTC, Chandan Rajendra wrote:
> Test runs on a ppc64 BE guest succeeded.
> 
> Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/d7f9ee60a6ebc263861a1d8c06

cheers

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-21  5:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-13 16:50 [PATCH] powerpc: Wire up copy_file_range() syscall Chandan Rajendra
2016-01-13 22:53 ` Michael Ellerman
2016-01-14  4:10   ` Chandan Rajendra
2016-01-21  5:34 ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.