Commit d098adfb authored by Tejun Heo's avatar Tejun Heo

fscache: drop references to slow-work

fscache no longer uses slow-work.  Drop references to it.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarDavid Howells <dhowells@redhat.com>
parent 8af7c124
config FSCACHE config FSCACHE
tristate "General filesystem local caching manager" tristate "General filesystem local caching manager"
select SLOW_WORK
help help
This option enables a generic filesystem caching manager that can be This option enables a generic filesystem caching manager that can be
used by various network and other filesystems to cache data locally. used by various network and other filesystems to cache data locally.
......
...@@ -106,10 +106,6 @@ static int __init fscache_init(void) ...@@ -106,10 +106,6 @@ static int __init fscache_init(void)
unsigned int cpu; unsigned int cpu;
int ret; int ret;
ret = slow_work_register_user(THIS_MODULE);
if (ret < 0)
goto error_slow_work;
fscache_object_max_active = fscache_object_max_active =
clamp_val(nr_cpus, clamp_val(nr_cpus,
fscache_object_max_active, WQ_UNBOUND_MAX_ACTIVE); fscache_object_max_active, WQ_UNBOUND_MAX_ACTIVE);
...@@ -176,8 +172,6 @@ static int __init fscache_init(void) ...@@ -176,8 +172,6 @@ static int __init fscache_init(void)
error_op_wq: error_op_wq:
destroy_workqueue(fscache_object_wq); destroy_workqueue(fscache_object_wq);
error_object_wq: error_object_wq:
slow_work_unregister_user(THIS_MODULE);
error_slow_work:
return ret; return ret;
} }
...@@ -196,7 +190,6 @@ static void __exit fscache_exit(void) ...@@ -196,7 +190,6 @@ static void __exit fscache_exit(void)
fscache_proc_cleanup(); fscache_proc_cleanup();
destroy_workqueue(fscache_op_wq); destroy_workqueue(fscache_op_wq);
destroy_workqueue(fscache_object_wq); destroy_workqueue(fscache_object_wq);
slow_work_unregister_user(THIS_MODULE);
printk(KERN_NOTICE "FS-Cache: Unloaded\n"); printk(KERN_NOTICE "FS-Cache: Unloaded\n");
} }
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <linux/fscache.h> #include <linux/fscache.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/slow-work.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#define NR_MAXCACHES BITS_PER_LONG #define NR_MAXCACHES BITS_PER_LONG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment