aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2019-06-25 18:00:42 -0400
committerHeiko Carstens <heiko.carstens@de.ibm.com>2019-07-26 07:36:22 -0400
commitac7a0fcea39d29125b83b73583463e5ab70fdb37 (patch)
tree4529880a03394781edaf2d2ac8862984d4c64d35
parent4f419eb14272e0698e8c55bb5f3f266cc2a21c81 (diff)
s390/mm: use shared variables for sysctl range check
Since commit eec4844fae7c ("proc/sysctl: add shared variables for range check") special shared variables are available for sysctl range check. Reuse them for /proc/sys/vm/allocate_pgste proc handler. Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
-rw-r--r--arch/s390/mm/pgalloc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/s390/mm/pgalloc.c b/arch/s390/mm/pgalloc.c
index 99e06213a22b..54fcdf66ae96 100644
--- a/arch/s390/mm/pgalloc.c
+++ b/arch/s390/mm/pgalloc.c
@@ -17,8 +17,6 @@
17 17
18#ifdef CONFIG_PGSTE 18#ifdef CONFIG_PGSTE
19 19
20static int page_table_allocate_pgste_min = 0;
21static int page_table_allocate_pgste_max = 1;
22int page_table_allocate_pgste = 0; 20int page_table_allocate_pgste = 0;
23EXPORT_SYMBOL(page_table_allocate_pgste); 21EXPORT_SYMBOL(page_table_allocate_pgste);
24 22
@@ -29,8 +27,8 @@ static struct ctl_table page_table_sysctl[] = {
29 .maxlen = sizeof(int), 27 .maxlen = sizeof(int),
30 .mode = S_IRUGO | S_IWUSR, 28 .mode = S_IRUGO | S_IWUSR,
31 .proc_handler = proc_dointvec_minmax, 29 .proc_handler = proc_dointvec_minmax,
32 .extra1 = &page_table_allocate_pgste_min, 30 .extra1 = SYSCTL_ZERO,
33 .extra2 = &page_table_allocate_pgste_max, 31 .extra2 = SYSCTL_ONE,
34 }, 32 },
35 { } 33 { }
36}; 34};