summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-03-17 12:23:32 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-03-17 12:23:32 -0400
commit1efff914afac8a965ad63817ecf8861a927c2ace (patch)
treed7b582a4811e957a7dc6abd26629694276e19e2d /kernel/sysctl.c
parenta2f4870697a5bcf4a87073ec6b32dd2928c1211d (diff)
downloadlinux-stable-1efff914afac8a965ad63817ecf8861a927c2ace.tar.gz
linux-stable-1efff914afac8a965ad63817ecf8861a927c2ace.tar.bz2
linux-stable-1efff914afac8a965ad63817ecf8861a927c2ace.zip
fs: add dirtytime_expire_seconds sysctl
Add a tuning knob so we can adjust the dirtytime expiration timeout, which is very useful for testing lazytime. Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 88ea2d6e0031..ce410bb9f2e1 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1228,6 +1228,14 @@ static struct ctl_table vm_table[] = {
.extra1 = &zero,
},
{
+ .procname = "dirtytime_expire_seconds",
+ .data = &dirtytime_expire_interval,
+ .maxlen = sizeof(dirty_expire_interval),
+ .mode = 0644,
+ .proc_handler = dirtytime_interval_handler,
+ .extra1 = &zero,
+ },
+ {
.procname = "nr_pdflush_threads",
.mode = 0444 /* read-only */,
.proc_handler = pdflush_proc_obsolete,