diff options
Diffstat (limited to 'fs/fscache')
-rw-r--r-- | fs/fscache/Kconfig | 1 | ||||
-rw-r--r-- | fs/fscache/main.c | 7 |
2 files changed, 0 insertions, 8 deletions
diff --git a/fs/fscache/Kconfig b/fs/fscache/Kconfig index cc94bb9563f2..3f6dfa989881 100644 --- a/fs/fscache/Kconfig +++ b/fs/fscache/Kconfig | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | config FSCACHE | 2 | config FSCACHE |
3 | tristate "General filesystem local caching manager" | 3 | tristate "General filesystem local caching manager" |
4 | select SLOW_WORK | ||
5 | help | 4 | help |
6 | This option enables a generic filesystem caching manager that can be | 5 | This option enables a generic filesystem caching manager that can be |
7 | used by various network and other filesystems to cache data locally. | 6 | used by various network and other filesystems to cache data locally. |
diff --git a/fs/fscache/main.c b/fs/fscache/main.c index 44d13ddab2cc..500936d9fff2 100644 --- a/fs/fscache/main.c +++ b/fs/fscache/main.c | |||
@@ -106,10 +106,6 @@ static int __init fscache_init(void) | |||
106 | unsigned int cpu; | 106 | unsigned int cpu; |
107 | int ret; | 107 | int ret; |
108 | 108 | ||
109 | ret = slow_work_register_user(THIS_MODULE); | ||
110 | if (ret < 0) | ||
111 | goto error_slow_work; | ||
112 | |||
113 | fscache_object_max_active = | 109 | fscache_object_max_active = |
114 | clamp_val(nr_cpus, | 110 | clamp_val(nr_cpus, |
115 | fscache_object_max_active, WQ_UNBOUND_MAX_ACTIVE); | 111 | fscache_object_max_active, WQ_UNBOUND_MAX_ACTIVE); |
@@ -176,8 +172,6 @@ error_proc: | |||
176 | error_op_wq: | 172 | error_op_wq: |
177 | destroy_workqueue(fscache_object_wq); | 173 | destroy_workqueue(fscache_object_wq); |
178 | error_object_wq: | 174 | error_object_wq: |
179 | slow_work_unregister_user(THIS_MODULE); | ||
180 | error_slow_work: | ||
181 | return ret; | 175 | return ret; |
182 | } | 176 | } |
183 | 177 | ||
@@ -196,7 +190,6 @@ static void __exit fscache_exit(void) | |||
196 | fscache_proc_cleanup(); | 190 | fscache_proc_cleanup(); |
197 | destroy_workqueue(fscache_op_wq); | 191 | destroy_workqueue(fscache_op_wq); |
198 | destroy_workqueue(fscache_object_wq); | 192 | destroy_workqueue(fscache_object_wq); |
199 | slow_work_unregister_user(THIS_MODULE); | ||
200 | printk(KERN_NOTICE "FS-Cache: Unloaded\n"); | 193 | printk(KERN_NOTICE "FS-Cache: Unloaded\n"); |
201 | } | 194 | } |
202 | 195 | ||