|
@@ -320,7 +320,7 @@ static struct cache_detail *current_detail;
|
|
static int current_index;
|
|
static int current_index;
|
|
|
|
|
|
static void do_cache_clean(struct work_struct *work);
|
|
static void do_cache_clean(struct work_struct *work);
|
|
-static DECLARE_DELAYED_WORK(cache_cleaner, do_cache_clean);
|
|
|
|
|
|
+static struct delayed_work cache_cleaner;
|
|
|
|
|
|
static void sunrpc_init_cache_detail(struct cache_detail *cd)
|
|
static void sunrpc_init_cache_detail(struct cache_detail *cd)
|
|
{
|
|
{
|
|
@@ -1504,6 +1504,11 @@ static int create_cache_proc_entries(struct cache_detail *cd)
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+void __init cache_initialize(void)
|
|
|
|
+{
|
|
|
|
+ INIT_DELAYED_WORK_DEFERRABLE(&cache_cleaner, do_cache_clean);
|
|
|
|
+}
|
|
|
|
+
|
|
int cache_register(struct cache_detail *cd)
|
|
int cache_register(struct cache_detail *cd)
|
|
{
|
|
{
|
|
int ret;
|
|
int ret;
|