fscache: drop references to slow-work
authorTejun Heo <tj@kernel.org>
Tue, 20 Jul 2010 20:09:01 +0000 (22:09 +0200)
committerTejun Heo <tj@kernel.org>
Thu, 22 Jul 2010 20:58:58 +0000 (22:58 +0200)
fscache no longer uses slow-work.  Drop references to it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: David Howells <dhowells@redhat.com>
fs/fscache/Kconfig
fs/fscache/main.c
include/linux/fscache-cache.h

index cc94bb9563f22c83fa9d7823e38d8e6566a1683d..3f6dfa989881eb1f44315b768c943c2ac336bc74 100644 (file)
@@ -1,7 +1,6 @@
 
 config FSCACHE
        tristate "General filesystem local caching manager"
-       select SLOW_WORK
        help
          This option enables a generic filesystem caching manager that can be
          used by various network and other filesystems to cache data locally.
index 44d13ddab2ccd95faedf3a2e2d4d7f428b527b52..500936d9fff21f222069f05ccbbca4136618e49f 100644 (file)
@@ -106,10 +106,6 @@ static int __init fscache_init(void)
        unsigned int cpu;
        int ret;
 
-       ret = slow_work_register_user(THIS_MODULE);
-       if (ret < 0)
-               goto error_slow_work;
-
        fscache_object_max_active =
                clamp_val(nr_cpus,
                          fscache_object_max_active, WQ_UNBOUND_MAX_ACTIVE);
@@ -176,8 +172,6 @@ error_proc:
 error_op_wq:
        destroy_workqueue(fscache_object_wq);
 error_object_wq:
-       slow_work_unregister_user(THIS_MODULE);
-error_slow_work:
        return ret;
 }
 
@@ -196,7 +190,6 @@ static void __exit fscache_exit(void)
        fscache_proc_cleanup();
        destroy_workqueue(fscache_op_wq);
        destroy_workqueue(fscache_object_wq);
-       slow_work_unregister_user(THIS_MODULE);
        printk(KERN_NOTICE "FS-Cache: Unloaded\n");
 }
 
index 17ed9c1dbfbeb41377f417749ae4e85425aeaab3..b8581c09d19f96a5551d0b60a96ac3ee9004df3e 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <linux/fscache.h>
 #include <linux/sched.h>
-#include <linux/slow-work.h>
 #include <linux/workqueue.h>
 
 #define NR_MAXCACHES BITS_PER_LONG