Skip to content

Commit

Permalink
fscache: fix build on !CONFIG_SYSCTL
Browse files Browse the repository at this point in the history
Commit 8b8edef (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>
  • Loading branch information
Tejun Heo committed Jul 24, 2010
1 parent 181a51f commit 40f2b6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/fscache/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ static void __exit fscache_exit(void)

kobject_put(fscache_root);
kmem_cache_destroy(fscache_cookie_jar);
#ifdef CONFIG_SYSCTL
unregister_sysctl_table(fscache_sysctl_header);
#endif
fscache_proc_cleanup();
destroy_workqueue(fscache_op_wq);
destroy_workqueue(fscache_object_wq);
Expand Down

0 comments on commit 40f2b6f

Please sign in to comment.