aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fscache
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-07-24 05:10:09 -0400
committerTejun Heo <tj@kernel.org>2010-07-24 05:10:09 -0400
commit40f2b6ffe525e975203c1621d4d4abaa7689b674 (patch)
treebb6052496a824e0ee3d1725465871819caf704cb /fs/fscache
parent181a51f6e040d0ac006d6adaf4a031ffa440f41c (diff)
fscache: fix build on !CONFIG_SYSCTL
Commit 8b8edefa (fscache: convert object to use workqueue instead of slow-work) made fscache_exit() call unregister_sysctl_table() unconditionally breaking build when sysctl is disabled. Fix it by putting it inside CONFIG_SYSCTL. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/fscache')
-rw-r--r--fs/fscache/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fscache/main.c b/fs/fscache/main.c
index 500936d9fff2..f9d856773f79 100644
--- a/fs/fscache/main.c
+++ b/fs/fscache/main.c
@@ -186,7 +186,9 @@ static void __exit fscache_exit(void)
186 186
187 kobject_put(fscache_root); 187 kobject_put(fscache_root);
188 kmem_cache_destroy(fscache_cookie_jar); 188 kmem_cache_destroy(fscache_cookie_jar);
189#ifdef CONFIG_SYSCTL
189 unregister_sysctl_table(fscache_sysctl_header); 190 unregister_sysctl_table(fscache_sysctl_header);
191#endif
190 fscache_proc_cleanup(); 192 fscache_proc_cleanup();
191 destroy_workqueue(fscache_op_wq); 193 destroy_workqueue(fscache_op_wq);
192 destroy_workqueue(fscache_object_wq); 194 destroy_workqueue(fscache_object_wq);