Re: + mm-add-proc-controls-for-pdflush-threads.patch added to -mmtree

From: Alexey Dobriyan
Date: Mon Jan 05 2009 - 18:16:28 EST


On Mon, Jan 05, 2009 at 02:53:03PM -0800, akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> Subject: mm: add /proc controls for pdflush threads

> @@ -1022,6 +1023,28 @@ static struct ctl_table vm_table[] = {
> .proc_handler = &proc_dointvec,
> },
> {
> + .ctl_name = CTL_UNNUMBERED,
> + .procname = "nr_pdflush_threads_min",
> + .data = &nr_pdflush_threads_min,
> + .maxlen = sizeof nr_pdflush_threads_min,
> + .mode = 0644 /* read-write */,
> + .proc_handler = &proc_dointvec_minmax,
> + .strategy = &sysctl_intvec,

.strategy isn't needed for /proc-only sysctls.

> + .extra1 = &one,
> + .extra2 = &nr_pdflush_threads_max,
> + },
> + {
> + .ctl_name = CTL_UNNUMBERED,
> + .procname = "nr_pdflush_threads_max",
> + .data = &nr_pdflush_threads_max,
> + .maxlen = sizeof nr_pdflush_threads_max,
> + .mode = 0644 /* read-write */,
> + .proc_handler = &proc_dointvec_minmax,
> + .strategy = &sysctl_intvec,

.strategy isn't needed for /proc-only sysctls.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/