LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Breno Leitao <leitao@debian.org>
To: linuxppc-dev@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org, Breno Leitao <leitao@debian.org>,
	David Howells <dhowells@redhat.com>
Subject: [PATCH] powerpc: Wire up file system mount new syscalls
Date: Fri, 27 Jul 2018 10:55:02 -0300	[thread overview]
Message-ID: <1532699702-15515-1-git-send-email-leitao@debian.org> (raw)

Wire up the new file system mount syscalls for Powerpc. The new syscall being
contemplated by this patch are those already available in the linux-next tree:
open_tree(), move_mount(), fsopen(), fsmount(), fspick() and fsinfo().

These system calls were tested with David Howells test case[1], as some others I
wrote[2]. For testing purpose, I also made usage of the new, but yet not
integrated, fsconfig() syscall.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?h=mount-context&id=2bae6fd63259c5244bd9de1b46cca706c4808438
[2] https://github.com/leitao/mcontext/

CC: David Howells <dhowells@redhat.com>
Signed-off-by: Breno Leitao <leitao@debian.org>
---
 arch/powerpc/include/asm/systbl.h      | 6 ++++++
 arch/powerpc/include/asm/unistd.h      | 2 +-
 arch/powerpc/include/uapi/asm/unistd.h | 6 ++++++
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
index 01b5171ea189..68d8dc0f8338 100644
--- a/arch/powerpc/include/asm/systbl.h
+++ b/arch/powerpc/include/asm/systbl.h
@@ -394,3 +394,9 @@ SYSCALL(pkey_free)
 SYSCALL(pkey_mprotect)
 SYSCALL(rseq)
 COMPAT_SYS(io_pgetevents)
+SYSCALL(open_tree)
+SYSCALL(move_mount)
+SYSCALL(fsopen)
+SYSCALL(fsmount)
+SYSCALL(fspick)
+SYSCALL(fsinfo)
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h
index c19379f0a32e..e6cf3bb0ed2f 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		389
+#define NR_syscalls		395
 
 #define __NR__exit __NR_exit
 
diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h
index 985534d0b448..89b450c6a246 100644
--- a/arch/powerpc/include/uapi/asm/unistd.h
+++ b/arch/powerpc/include/uapi/asm/unistd.h
@@ -400,5 +400,11 @@
 #define __NR_pkey_mprotect	386
 #define __NR_rseq		387
 #define __NR_io_pgetevents	388
+#define __NR_open_tree		389
+#define __NR_move_mount	390
+#define __NR_fsopen		391
+#define __NR_fsmount		392
+#define __NR_fspick		393
+#define __NR_fsinfo		394
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
-- 
2.16.3

                 reply	other threads:[~2018-07-27 13:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1532699702-15515-1-git-send-email-leitao@debian.org \
    --to=leitao@debian.org \
    --cc=dhowells@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox