light: rename throttling parameters and defaults

This commit is contained in:
Thomas Schoebel-Theuer 2013-11-20 09:06:10 +01:00
parent 65bdee3b08
commit 6579393177
3 changed files with 7 additions and 7 deletions

View File

@ -45,7 +45,7 @@ int if_throttle_start_size = 0; // in kb
EXPORT_SYMBOL_GPL(if_throttle_start_size);
struct mars_limiter if_throttle = {
.lim_max_rate = 10000,
.lim_max_rate = 5000,
};
EXPORT_SYMBOL_GPL(if_throttle);

View File

@ -127,10 +127,10 @@ int mars_fast_fullsync =
;
EXPORT_SYMBOL_GPL(mars_fast_fullsync);
int mars_throttle_start = 0;
int mars_throttle_start = 60;
EXPORT_SYMBOL_GPL(mars_throttle_start);
int mars_throttle_end = 99;
int mars_throttle_end = 90;
EXPORT_SYMBOL_GPL(mars_throttle_end);
int mars_emergency_mode = 0;

View File

@ -169,7 +169,7 @@ EXPORT_SYMBOL_GPL(mars_max_loadavg);
VEC_ENTRY(NAME, VAR, MODE, 1)
#define LIMITER_ENTRIES(VAR, PREFIX, SUFFIX) \
INT_ENTRY(PREFIX "_limit_" SUFFIX, (VAR)->lim_max_rate, 0600), \
INT_ENTRY(PREFIX "_ratelimit_" SUFFIX, (VAR)->lim_max_rate, 0600), \
INT_ENTRY(PREFIX "_cumul_" SUFFIX, (VAR)->lim_cumul, 0600), \
INT_ENTRY(PREFIX "_rate_" SUFFIX, (VAR)->lim_rate, 0400) \
@ -260,9 +260,9 @@ ctl_table mars_table[] = {
INT_ENTRY("required_free_space_4_gb", global_free_space_4, 0600),
INT_ENTRY("mars_emergency_mode", mars_emergency_mode, 0600),
INT_ENTRY("mars_reset_emergency", mars_reset_emergency, 0600),
INT_ENTRY("write_throttle_start", mars_throttle_start, 0600),
INT_ENTRY("write_throttle_end", mars_throttle_end, 0600),
INT_ENTRY("write_throttle_size_limit", if_throttle_start_size, 0400),
INT_ENTRY("write_throttle_start_percent", mars_throttle_start, 0600),
INT_ENTRY("write_throttle_end_percent", mars_throttle_end, 0600),
INT_ENTRY("write_throttle_size_threshold_kb", if_throttle_start_size, 0400),
LIMITER_ENTRIES(&if_throttle, "write_throttle", "kb"),
#ifdef CONFIG_MARS_LOADAVG_LIMIT
INT_ENTRY("loadavg_limit", mars_max_loadavg, 0600),