Skip to content

Commit 8bd49ac

Browse files
heicarstMartin Schwidefsky
authored andcommitted
s390: wire up statx system call
Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
1 parent 2e4d880 commit 8bd49ac

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

arch/s390/include/uapi/asm/unistd.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@
313313
#define __NR_copy_file_range 375
314314
#define __NR_preadv2 376
315315
#define __NR_pwritev2 377
316-
#define NR_syscalls 378
316+
/* Number 378 is reserved for guarded storage */
317+
#define __NR_statx 379
318+
#define NR_syscalls 380
317319

318320
/*
319321
* There are some system calls that are not present on 64 bit, some

arch/s390/kernel/compat_wrapper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,4 @@ COMPAT_SYSCALL_WRAP3(getpeername, int, fd, struct sockaddr __user *, usockaddr,
178178
COMPAT_SYSCALL_WRAP6(sendto, int, fd, void __user *, buff, size_t, len, unsigned int, flags, struct sockaddr __user *, addr, int, addr_len);
179179
COMPAT_SYSCALL_WRAP3(mlock2, unsigned long, start, size_t, len, int, flags);
180180
COMPAT_SYSCALL_WRAP6(copy_file_range, int, fd_in, loff_t __user *, off_in, int, fd_out, loff_t __user *, off_out, size_t, len, unsigned int, flags);
181+
COMPAT_SYSCALL_WRAP5(statx, int, dfd, const char __user *, path, unsigned, flags, unsigned, mask, struct statx __user *, buffer);

arch/s390/kernel/syscalls.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,3 +386,5 @@ SYSCALL(sys_mlock2,compat_sys_mlock2)
386386
SYSCALL(sys_copy_file_range,compat_sys_copy_file_range) /* 375 */
387387
SYSCALL(sys_preadv2,compat_sys_preadv2)
388388
SYSCALL(sys_pwritev2,compat_sys_pwritev2)
389+
NI_SYSCALL
390+
SYSCALL(sys_statx,compat_sys_statx)

0 commit comments

Comments
 (0)