Skip to content

Commit

Permalink
quota: wire up quotactl_path
Browse files Browse the repository at this point in the history
Wire up the quotactl_path syscall added in the previous patch.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
saschahauer authored and intel-lab-lkp committed Feb 11, 2021
1 parent 4b7a3df commit 0fa8489
Show file tree
Hide file tree
Showing 21 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions arch/alpha/kernel/syscalls/syscall.tbl
Expand Up @@ -481,3 +481,4 @@
549 common faccessat2 sys_faccessat2
550 common process_madvise sys_process_madvise
551 common epoll_pwait2 sys_epoll_pwait2
552 common quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/arm/tools/syscall.tbl
Expand Up @@ -455,3 +455,4 @@
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common epoll_pwait2 sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path
2 changes: 1 addition & 1 deletion arch/arm64/include/asm/unistd.h
Expand Up @@ -38,7 +38,7 @@
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)

#define __NR_compat_syscalls 442
#define __NR_compat_syscalls 443
#endif

#define __ARCH_WANT_SYS_CLONE
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/include/asm/unistd32.h
Expand Up @@ -891,6 +891,8 @@ __SYSCALL(__NR_faccessat2, sys_faccessat2)
__SYSCALL(__NR_process_madvise, sys_process_madvise)
#define __NR_epoll_pwait2 441
__SYSCALL(__NR_epoll_pwait2, compat_sys_epoll_pwait2)
#define __NR_quotactl_path 442
__SYSCALL(__NR_quotactl_path, sys_quotactl_path)

/*
* Please add new compat syscalls above this comment and update
Expand Down
1 change: 1 addition & 0 deletions arch/ia64/kernel/syscalls/syscall.tbl
Expand Up @@ -362,3 +362,4 @@
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common epoll_pwait2 sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/m68k/kernel/syscalls/syscall.tbl
Expand Up @@ -441,3 +441,4 @@
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common epoll_pwait2 sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/microblaze/kernel/syscalls/syscall.tbl
Expand Up @@ -447,3 +447,4 @@
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common epoll_pwait2 sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/mips/kernel/syscalls/syscall_n32.tbl
Expand Up @@ -380,3 +380,4 @@
439 n32 faccessat2 sys_faccessat2
440 n32 process_madvise sys_process_madvise
441 n32 epoll_pwait2 compat_sys_epoll_pwait2
442 n32 quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/mips/kernel/syscalls/syscall_n64.tbl
Expand Up @@ -356,3 +356,4 @@
439 n64 faccessat2 sys_faccessat2
440 n64 process_madvise sys_process_madvise
441 n64 epoll_pwait2 sys_epoll_pwait2
442 n64 quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/mips/kernel/syscalls/syscall_o32.tbl
Expand Up @@ -429,3 +429,4 @@
439 o32 faccessat2 sys_faccessat2
440 o32 process_madvise sys_process_madvise
441 o32 epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
442 o32 quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/parisc/kernel/syscalls/syscall.tbl
Expand Up @@ -439,3 +439,4 @@
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/powerpc/kernel/syscalls/syscall.tbl
Expand Up @@ -531,3 +531,4 @@
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/s390/kernel/syscalls/syscall.tbl
Expand Up @@ -444,3 +444,4 @@
439 common faccessat2 sys_faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise sys_process_madvise
441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/sh/kernel/syscalls/syscall.tbl
Expand Up @@ -444,3 +444,4 @@
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common epoll_pwait2 sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/sparc/kernel/syscalls/syscall.tbl
Expand Up @@ -487,3 +487,4 @@
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/x86/entry/syscalls/syscall_32.tbl
Expand Up @@ -446,3 +446,4 @@
439 i386 faccessat2 sys_faccessat2
440 i386 process_madvise sys_process_madvise
441 i386 epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path
1 change: 1 addition & 0 deletions arch/x86/entry/syscalls/syscall_64.tbl
Expand Up @@ -363,6 +363,7 @@
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common epoll_pwait2 sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path

#
# Due to a historical design error, certain syscalls are numbered differently
Expand Down
1 change: 1 addition & 0 deletions arch/xtensa/kernel/syscalls/syscall.tbl
Expand Up @@ -412,3 +412,4 @@
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common epoll_pwait2 sys_epoll_pwait2
442 common quotactl_path sys_quotactl_path
2 changes: 2 additions & 0 deletions include/linux/syscalls.h
Expand Up @@ -482,6 +482,8 @@ asmlinkage long sys_pipe2(int __user *fildes, int flags);
/* fs/quota.c */
asmlinkage long sys_quotactl(unsigned int cmd, const char __user *special,
qid_t id, void __user *addr);
asmlinkage long sys_quotactl_path(unsigned int cmd, const char __user *mountpoint,
qid_t id, void __user *addr);

/* fs/readdir.c */
asmlinkage long sys_getdents64(unsigned int fd,
Expand Down
4 changes: 3 additions & 1 deletion include/uapi/asm-generic/unistd.h
Expand Up @@ -861,9 +861,11 @@ __SYSCALL(__NR_faccessat2, sys_faccessat2)
__SYSCALL(__NR_process_madvise, sys_process_madvise)
#define __NR_epoll_pwait2 441
__SC_COMP(__NR_epoll_pwait2, sys_epoll_pwait2, compat_sys_epoll_pwait2)
#define __NR_quotactl_path 442
__SYSCALL(__NR_quotactl_path, sys_quotactl_path)

#undef __NR_syscalls
#define __NR_syscalls 442
#define __NR_syscalls 443

/*
* 32 bit systems traditionally used different
Expand Down
1 change: 1 addition & 0 deletions kernel/sys_ni.c
Expand Up @@ -99,6 +99,7 @@ COND_SYSCALL(flock);

/* fs/quota.c */
COND_SYSCALL(quotactl);
COND_SYSCALL(quotactl_path);

/* fs/readdir.c */

Expand Down

0 comments on commit 0fa8489

Please sign in to comment.