diff options
author | Csaba Henk <csaba@gluster.com> | 2009-08-26 13:18:24 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2009-09-16 08:15:29 -0400 |
commit | 79a9d99434b104c562f30f21b75317667f444793 (patch) | |
tree | 181900c493e9aa0322b47dbcf2aa8251a956dd30 /fs/fuse/inode.c | |
parent | 487ea5af6358cb27c994e2cf056d4ee0872e43c3 (diff) |
fuse: add fusectl interface to max_background
Make the max_background and congestion_threshold parameters of a FUSE
mount tunable at runtime by adding the respective knobs to its directory
within the fusectl filesystem.
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/inode.c')
-rw-r--r-- | fs/fuse/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index e54ddbda208c..8f9aca8d4ad5 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -31,7 +31,7 @@ DEFINE_MUTEX(fuse_mutex); | |||
31 | 31 | ||
32 | static int set_global_limit(const char *val, struct kernel_param *kp); | 32 | static int set_global_limit(const char *val, struct kernel_param *kp); |
33 | 33 | ||
34 | static unsigned max_user_bgreq; | 34 | unsigned max_user_bgreq; |
35 | module_param_call(max_user_bgreq, set_global_limit, param_get_uint, | 35 | module_param_call(max_user_bgreq, set_global_limit, param_get_uint, |
36 | &max_user_bgreq, 0644); | 36 | &max_user_bgreq, 0644); |
37 | __MODULE_PARM_TYPE(max_user_bgreq, "uint"); | 37 | __MODULE_PARM_TYPE(max_user_bgreq, "uint"); |
@@ -39,7 +39,7 @@ MODULE_PARM_DESC(max_user_bgreq, | |||
39 | "Global limit for the maximum number of backgrounded requests an " | 39 | "Global limit for the maximum number of backgrounded requests an " |
40 | "unprivileged user can set"); | 40 | "unprivileged user can set"); |
41 | 41 | ||
42 | static unsigned max_user_congthresh; | 42 | unsigned max_user_congthresh; |
43 | module_param_call(max_user_congthresh, set_global_limit, param_get_uint, | 43 | module_param_call(max_user_congthresh, set_global_limit, param_get_uint, |
44 | &max_user_congthresh, 0644); | 44 | &max_user_congthresh, 0644); |
45 | __MODULE_PARM_TYPE(max_user_congthresh, "uint"); | 45 | __MODULE_PARM_TYPE(max_user_congthresh, "uint"); |