aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/debugfs.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-11-12 18:05:52 -0500
committerSage Weil <sage@newdream.net>2009-11-12 18:56:51 -0500
commit039934b895c89c2bb40aa5132efe00e60b70efca (patch)
treecb29a509f2fcf6423191beb8b6aec6e20b89ee14 /fs/ceph/debugfs.c
parentfef320ff8887c702cde7ca6b8dbfff3a341d49fe (diff)
ceph: build cleanly without CONFIG_DEBUG_FS
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/debugfs.c')
-rw-r--r--fs/ceph/debugfs.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c
index 9edbad32f116..9b2020696680 100644
--- a/fs/ceph/debugfs.c
+++ b/fs/ceph/debugfs.c
@@ -8,6 +8,8 @@
8#include "super.h" 8#include "super.h"
9#include "mds_client.h" 9#include "mds_client.h"
10 10
11#ifdef CONFIG_DEBUG_FS
12
11/* 13/*
12 * Implement /sys/kernel/debug/ceph fun 14 * Implement /sys/kernel/debug/ceph fun
13 * 15 *
@@ -423,3 +425,24 @@ void ceph_debugfs_client_cleanup(struct ceph_client *client)
423 debugfs_remove(client->debugfs_dir); 425 debugfs_remove(client->debugfs_dir);
424} 426}
425 427
428#else // CONFIG_DEBUG_FS
429
430int __init ceph_debugfs_init(void)
431{
432 return 0;
433}
434
435void ceph_debugfs_cleanup(void)
436{
437}
438
439int ceph_debugfs_client_init(struct ceph_client *client)
440{
441 return 0;
442}
443
444void ceph_debugfs_client_cleanup(struct ceph_client *client)
445{
446}
447
448#endif // CONFIG_DEBUG_FS