The patch titled Subject: mm: remove sysctl_extfrag_handler() has been added to the -mm tree. Its filename is mm-remove-sysctl_extfrag_handler.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-remove-sysctl_extfrag_handler.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-remove-sysctl_extfrag_handler.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Matthew Wilcox <willy@xxxxxxxxxxxxx> Subject: mm: remove sysctl_extfrag_handler() sysctl_extfrag_handler() neglects to propagate the return value from proc_dointvec_minmax() to its caller. It's a wrapper that doesn't need to exist, so just use proc_dointvec_minmax() directly. Link: http://lkml.kernel.org/r/20190104032557.3056-1-willy@xxxxxxxxxxxxx Reported-by: Aditya Pakki <pakki001@xxxxxxx> Signed-off-by: Matthew Wilcox <willy@xxxxxxxxxxxxx> Acked-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- --- a/include/linux/compaction.h~mm-remove-sysctl_extfrag_handler +++ a/include/linux/compaction.h @@ -88,8 +88,6 @@ extern int sysctl_compact_memory; extern int sysctl_compaction_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, loff_t *ppos); extern int sysctl_extfrag_threshold; -extern int sysctl_extfrag_handler(struct ctl_table *table, int write, - void __user *buffer, size_t *length, loff_t *ppos); extern int sysctl_compact_unevictable_allowed; extern int fragmentation_index(struct zone *zone, unsigned int order); --- a/kernel/sysctl.c~mm-remove-sysctl_extfrag_handler +++ a/kernel/sysctl.c @@ -1446,7 +1446,7 @@ static struct ctl_table vm_table[] = { .data = &sysctl_extfrag_threshold, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = sysctl_extfrag_handler, + .proc_handler = proc_dointvec_minmax, .extra1 = &min_extfrag_threshold, .extra2 = &max_extfrag_threshold, }, --- a/mm/compaction.c~mm-remove-sysctl_extfrag_handler +++ a/mm/compaction.c @@ -1876,14 +1876,6 @@ int sysctl_compaction_handler(struct ctl return 0; } -int sysctl_extfrag_handler(struct ctl_table *table, int write, - void __user *buffer, size_t *length, loff_t *ppos) -{ - proc_dointvec_minmax(table, write, buffer, length, ppos); - - return 0; -} - #if defined(CONFIG_SYSFS) && defined(CONFIG_NUMA) static ssize_t sysfs_compact_node(struct device *dev, struct device_attribute *attr, _ Patches currently in -mm which might be from willy@xxxxxxxxxxxxx are fls-change-parameter-to-unsigned-int.patch initialise-mmu_notifier_range-correctly.patch mm-remove-sysctl_extfrag_handler.patch