mm/mempolicy: wire up syscall set_mempolicy_home_node
Link: https://lkml.kernel.org/r/20211202123810.267175-4-aneesh.kumar@linux.ibm.com Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Cc: Ben Widawsky <ben.widawsky@intel.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Feng Tang <feng.tang@intel.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Andi Kleen <ak@linux.intel.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Huang Ying <ying.huang@intel.com> Cc: <linux-api@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c6018b4b25
commit
21b084fdf2
|
@ -489,3 +489,4 @@
|
||||||
# 557 reserved for memfd_secret
|
# 557 reserved for memfd_secret
|
||||||
558 common process_mrelease sys_process_mrelease
|
558 common process_mrelease sys_process_mrelease
|
||||||
559 common futex_waitv sys_futex_waitv
|
559 common futex_waitv sys_futex_waitv
|
||||||
|
560 common set_mempolicy_home_node sys_ni_syscall
|
||||||
|
|
|
@ -463,3 +463,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 common process_mrelease sys_process_mrelease
|
448 common process_mrelease sys_process_mrelease
|
||||||
449 common futex_waitv sys_futex_waitv
|
449 common futex_waitv sys_futex_waitv
|
||||||
|
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
|
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
|
||||||
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)
|
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)
|
||||||
|
|
||||||
#define __NR_compat_syscalls 450
|
#define __NR_compat_syscalls 451
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define __ARCH_WANT_SYS_CLONE
|
#define __ARCH_WANT_SYS_CLONE
|
||||||
|
|
|
@ -905,6 +905,8 @@ __SYSCALL(__NR_landlock_restrict_self, sys_landlock_restrict_self)
|
||||||
__SYSCALL(__NR_process_mrelease, sys_process_mrelease)
|
__SYSCALL(__NR_process_mrelease, sys_process_mrelease)
|
||||||
#define __NR_futex_waitv 449
|
#define __NR_futex_waitv 449
|
||||||
__SYSCALL(__NR_futex_waitv, sys_futex_waitv)
|
__SYSCALL(__NR_futex_waitv, sys_futex_waitv)
|
||||||
|
#define __NR_set_mempolicy_home_node 450
|
||||||
|
__SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please add new compat syscalls above this comment and update
|
* Please add new compat syscalls above this comment and update
|
||||||
|
|
|
@ -370,3 +370,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 common process_mrelease sys_process_mrelease
|
448 common process_mrelease sys_process_mrelease
|
||||||
449 common futex_waitv sys_futex_waitv
|
449 common futex_waitv sys_futex_waitv
|
||||||
|
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -449,3 +449,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 common process_mrelease sys_process_mrelease
|
448 common process_mrelease sys_process_mrelease
|
||||||
449 common futex_waitv sys_futex_waitv
|
449 common futex_waitv sys_futex_waitv
|
||||||
|
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -455,3 +455,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 common process_mrelease sys_process_mrelease
|
448 common process_mrelease sys_process_mrelease
|
||||||
449 common futex_waitv sys_futex_waitv
|
449 common futex_waitv sys_futex_waitv
|
||||||
|
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -388,3 +388,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 n32 process_mrelease sys_process_mrelease
|
448 n32 process_mrelease sys_process_mrelease
|
||||||
449 n32 futex_waitv sys_futex_waitv
|
449 n32 futex_waitv sys_futex_waitv
|
||||||
|
450 n32 set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -364,3 +364,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 n64 process_mrelease sys_process_mrelease
|
448 n64 process_mrelease sys_process_mrelease
|
||||||
449 n64 futex_waitv sys_futex_waitv
|
449 n64 futex_waitv sys_futex_waitv
|
||||||
|
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -437,3 +437,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 o32 process_mrelease sys_process_mrelease
|
448 o32 process_mrelease sys_process_mrelease
|
||||||
449 o32 futex_waitv sys_futex_waitv
|
449 o32 futex_waitv sys_futex_waitv
|
||||||
|
450 o32 set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -447,3 +447,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 common process_mrelease sys_process_mrelease
|
448 common process_mrelease sys_process_mrelease
|
||||||
449 common futex_waitv sys_futex_waitv
|
449 common futex_waitv sys_futex_waitv
|
||||||
|
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -529,3 +529,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 common process_mrelease sys_process_mrelease
|
448 common process_mrelease sys_process_mrelease
|
||||||
449 common futex_waitv sys_futex_waitv
|
449 common futex_waitv sys_futex_waitv
|
||||||
|
450 nospu set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -452,3 +452,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 common process_mrelease sys_process_mrelease sys_process_mrelease
|
448 common process_mrelease sys_process_mrelease sys_process_mrelease
|
||||||
449 common futex_waitv sys_futex_waitv sys_futex_waitv
|
449 common futex_waitv sys_futex_waitv sys_futex_waitv
|
||||||
|
450 common set_mempolicy_home_node sys_set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -452,3 +452,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 common process_mrelease sys_process_mrelease
|
448 common process_mrelease sys_process_mrelease
|
||||||
449 common futex_waitv sys_futex_waitv
|
449 common futex_waitv sys_futex_waitv
|
||||||
|
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -495,3 +495,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 common process_mrelease sys_process_mrelease
|
448 common process_mrelease sys_process_mrelease
|
||||||
449 common futex_waitv sys_futex_waitv
|
449 common futex_waitv sys_futex_waitv
|
||||||
|
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -454,3 +454,4 @@
|
||||||
447 i386 memfd_secret sys_memfd_secret
|
447 i386 memfd_secret sys_memfd_secret
|
||||||
448 i386 process_mrelease sys_process_mrelease
|
448 i386 process_mrelease sys_process_mrelease
|
||||||
449 i386 futex_waitv sys_futex_waitv
|
449 i386 futex_waitv sys_futex_waitv
|
||||||
|
450 i386 set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -371,6 +371,7 @@
|
||||||
447 common memfd_secret sys_memfd_secret
|
447 common memfd_secret sys_memfd_secret
|
||||||
448 common process_mrelease sys_process_mrelease
|
448 common process_mrelease sys_process_mrelease
|
||||||
449 common futex_waitv sys_futex_waitv
|
449 common futex_waitv sys_futex_waitv
|
||||||
|
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
||||||
#
|
#
|
||||||
# Due to a historical design error, certain syscalls are numbered differently
|
# Due to a historical design error, certain syscalls are numbered differently
|
||||||
|
|
|
@ -420,3 +420,4 @@
|
||||||
# 447 reserved for memfd_secret
|
# 447 reserved for memfd_secret
|
||||||
448 common process_mrelease sys_process_mrelease
|
448 common process_mrelease sys_process_mrelease
|
||||||
449 common futex_waitv sys_futex_waitv
|
449 common futex_waitv sys_futex_waitv
|
||||||
|
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||||
|
|
|
@ -1057,6 +1057,9 @@ asmlinkage long sys_landlock_add_rule(int ruleset_fd, enum landlock_rule_type ru
|
||||||
const void __user *rule_attr, __u32 flags);
|
const void __user *rule_attr, __u32 flags);
|
||||||
asmlinkage long sys_landlock_restrict_self(int ruleset_fd, __u32 flags);
|
asmlinkage long sys_landlock_restrict_self(int ruleset_fd, __u32 flags);
|
||||||
asmlinkage long sys_memfd_secret(unsigned int flags);
|
asmlinkage long sys_memfd_secret(unsigned int flags);
|
||||||
|
asmlinkage long sys_set_mempolicy_home_node(unsigned long start, unsigned long len,
|
||||||
|
unsigned long home_node,
|
||||||
|
unsigned long flags);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Architecture-specific system calls
|
* Architecture-specific system calls
|
||||||
|
|
|
@ -883,8 +883,11 @@ __SYSCALL(__NR_process_mrelease, sys_process_mrelease)
|
||||||
#define __NR_futex_waitv 449
|
#define __NR_futex_waitv 449
|
||||||
__SYSCALL(__NR_futex_waitv, sys_futex_waitv)
|
__SYSCALL(__NR_futex_waitv, sys_futex_waitv)
|
||||||
|
|
||||||
|
#define __NR_set_mempolicy_home_node 450
|
||||||
|
__SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node)
|
||||||
|
|
||||||
#undef __NR_syscalls
|
#undef __NR_syscalls
|
||||||
#define __NR_syscalls 450
|
#define __NR_syscalls 451
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 32 bit systems traditionally used different
|
* 32 bit systems traditionally used different
|
||||||
|
|
|
@ -297,6 +297,7 @@ COND_SYSCALL(get_mempolicy);
|
||||||
COND_SYSCALL(set_mempolicy);
|
COND_SYSCALL(set_mempolicy);
|
||||||
COND_SYSCALL(migrate_pages);
|
COND_SYSCALL(migrate_pages);
|
||||||
COND_SYSCALL(move_pages);
|
COND_SYSCALL(move_pages);
|
||||||
|
COND_SYSCALL(set_mempolicy_home_node);
|
||||||
|
|
||||||
COND_SYSCALL(perf_event_open);
|
COND_SYSCALL(perf_event_open);
|
||||||
COND_SYSCALL(accept4);
|
COND_SYSCALL(accept4);
|
||||||
|
|
Loading…
Reference in New Issue