12 #define FSCACHE_DEBUG_LEVEL CACHE
13 #include <linux/module.h>
15 #include <linux/sched.h>
17 #include <linux/slab.h>
29 "Defer cookie lookup to background thread");
35 "Defer cookie creation to background thread");
41 "FS-Cache debugging mask");
50 static unsigned fscache_object_max_active = 4;
51 static unsigned fscache_op_max_active = 2;
58 size_t *lenp, loff_t *ppos)
61 unsigned int *datap = table->
data;
73 .data = &fscache_object_max_active,
74 .maxlen =
sizeof(unsigned),
77 .extra1 = &fscache_object_wq,
80 .procname =
"operation_max_active",
81 .data = &fscache_op_max_active,
82 .maxlen =
sizeof(unsigned),
85 .extra1 = &fscache_op_wq,
94 .child = fscache_sysctls,
103 static int __init fscache_init(
void)
109 fscache_object_max_active =
115 fscache_object_max_active);
116 if (!fscache_object_wq)
117 goto error_object_wq;
119 fscache_op_max_active =
125 fscache_op_max_active);
139 if (!fscache_sysctl_header)
150 "FS-Cache: Failed to allocate a cookie jar\n");
152 goto error_cookie_jar;
183 static void __exit fscache_exit(
void)
216 return signal_pending(
current);