Re: + sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 24, 2021 at 2:08 PM <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
>
> The patch titled
>      Subject: sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals-fix
> has been added to the -mm tree.  Its filename is
>      sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals-fix.patch
>
> This patch should soon appear at
>     https://ozlabs.org/~akpm/mmots/broken-out/sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals-fix.patch
> and later at
>     https://ozlabs.org/~akpm/mmotm/broken-out/sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals-fix.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: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Subject: sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals-fix
>
> update it for "mm/pagealloc: sysctl: change watermark_scale_factor max
> limit to 30%".

Thanks for resolving the conflicts, Andrew!

>
> Cc: Xiaoming Ni <nixiaoming@xxxxxxxxxx>
> Cc: Suren Baghdasaryan <surenb@xxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> ---
>
>  fs/proc/proc_sysctl.c  |    2 +-
>  include/linux/sysctl.h |    3 ++-
>  kernel/sysctl.c        |    3 +--
>  3 files changed, 4 insertions(+), 4 deletions(-)
>
> --- a/fs/proc/proc_sysctl.c~sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals-fix
> +++ a/fs/proc/proc_sysctl.c
> @@ -26,7 +26,7 @@ static const struct file_operations proc
>  static const struct inode_operations proc_sys_dir_operations;
>
>  /* shared constants to be used in various sysctls */
> -const int sysctl_vals[] = { -1, 0, 1, 2, 4, 100, 200, 1000, INT_MAX };
> +const int sysctl_vals[] = { -1, 0, 1, 2, 4, 100, 200, 1000, 3000, INT_MAX };
>  EXPORT_SYMBOL(sysctl_vals);
>
>  /* Support for permanently empty directories */
> --- a/include/linux/sysctl.h~sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals-fix
> +++ a/include/linux/sysctl.h
> @@ -46,7 +46,8 @@ struct ctl_dir;
>  #define SYSCTL_ONE_HUNDRED             ((void *)&sysctl_vals[5])
>  #define SYSCTL_TWO_HUNDRED             ((void *)&sysctl_vals[6])
>  #define SYSCTL_ONE_THOUSAND            ((void *)&sysctl_vals[7])
> -#define SYSCTL_INT_MAX                 ((void *)&sysctl_vals[8])
> +#define SYSCTL_THREE_THOUSAND          ((void *)&sysctl_vals[8])
> +#define SYSCTL_INT_MAX                 ((void *)&sysctl_vals[9])
>
>  extern const int sysctl_vals[];
>
> --- a/kernel/sysctl.c~sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals-fix
> +++ a/kernel/sysctl.c
> @@ -116,7 +116,6 @@ static int sixty = 60;
>  static unsigned long zero_ul;
>  static unsigned long one_ul = 1;
>  static unsigned long long_max = LONG_MAX;
> -static int three_thousand = 3000;
>  #ifdef CONFIG_PRINTK
>  static int ten_thousand = 10000;
>  #endif
> @@ -2954,7 +2953,7 @@ static struct ctl_table vm_table[] = {
>                 .mode           = 0644,
>                 .proc_handler   = watermark_scale_factor_sysctl_handler,
>                 .extra1         = SYSCTL_ONE,
> -               .extra2         = &three_thousand,
> +               .extra2         = SYSCTL_THREE_THOUSAND,
>         },
>         {
>                 .procname       = "percpu_pagelist_high_fraction",
> _
>
> Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are
>
> mm-bdi-initialize-bdi_min_ratio-when-bdi-unregister-fix.patch
> kthread-add-the-helper-function-kthread_run_on_cpu-fix.patch
> mm.patch
> mm-remove-redundant-check-about-fault_flag_allow_retry-bit-checkpatch-fixes.patch
> mm-mempolicy-convert-from-atomic_t-to-refcount_t-on-mempolicy-refcnt-fix.patch
> proc-make-the-proc_create-stubs-static-inlines-fix.patch
> panic-use-error_report_end-tracepoint-on-warnings-fix.patch
> linux-next-git-rejects.patch
> sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals-fix.patch
> kernel-forkc-export-kernel_thread-to-modules.patch
>



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux