Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/sysctl: Remove "vm/allocate_pgste" sysctl

Remove the not needed "vm/allocate_pgste" sysctl. It has no effect
anymore. However this is a user space visible change. It shouldn't cause
any problems, however if it does this needs to be partially reverted.

Note that some distributions set
vm/allocate_pgste=1

in one of the various sysctl configuration files. Besides a warning about
the (now) non-existent procfs file this doesn't cause any problems.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

authored by

Heiko Carstens and committed by
Vasily Gorbik
46ba4d0b 174cb82a

-26
-1
arch/s390/include/asm/pgalloc.h
··· 26 26 struct ptdesc *page_table_alloc_pgste(struct mm_struct *mm); 27 27 void page_table_free(struct mm_struct *, unsigned long *); 28 28 void page_table_free_pgste(struct ptdesc *ptdesc); 29 - extern int page_table_allocate_pgste; 30 29 31 30 static inline void crst_table_init(unsigned long *crst, unsigned long entry) 32 31 {
-25
arch/s390/mm/pgalloc.c
··· 16 16 #include <asm/tlb.h> 17 17 #include <asm/tlbflush.h> 18 18 19 - #ifdef CONFIG_PGSTE 20 - 21 - int page_table_allocate_pgste = 0; 22 - EXPORT_SYMBOL(page_table_allocate_pgste); 23 - 24 - static const struct ctl_table page_table_sysctl[] = { 25 - { 26 - .procname = "allocate_pgste", 27 - .data = &page_table_allocate_pgste, 28 - .maxlen = sizeof(int), 29 - .mode = S_IRUGO | S_IWUSR, 30 - .proc_handler = proc_dointvec_minmax, 31 - .extra1 = SYSCTL_ZERO, 32 - .extra2 = SYSCTL_ONE, 33 - }, 34 - }; 35 - 36 - static int __init page_table_register_sysctl(void) 37 - { 38 - return register_sysctl("vm", page_table_sysctl) ? 0 : -ENOMEM; 39 - } 40 - __initcall(page_table_register_sysctl); 41 - 42 - #endif /* CONFIG_PGSTE */ 43 - 44 19 unsigned long *crst_table_alloc(struct mm_struct *mm) 45 20 { 46 21 struct ptdesc *ptdesc = pagetable_alloc(GFP_KERNEL, CRST_ALLOC_ORDER);