aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/debugfs.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-11-12 15:05:52 -0800
committerSage Weil <sage@newdream.net>2009-11-12 15:56:51 -0800
commit039934b895c89c2bb40aa5132efe00e60b70efca (patch)
treecb29a509f2fcf6423191beb8b6aec6e20b89ee14 /fs/ceph/debugfs.c
parentfef320ff8887c702cde7ca6b8dbfff3a341d49fe (diff)
downloadkernel_samsung_smdk4412-039934b895c89c2bb40aa5132efe00e60b70efca.zip
kernel_samsung_smdk4412-039934b895c89c2bb40aa5132efe00e60b70efca.tar.gz
kernel_samsung_smdk4412-039934b895c89c2bb40aa5132efe00e60b70efca.tar.bz2
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 9edbad3..9b20206 100644
--- a/fs/ceph/debugfs.c
+++ b/fs/ceph/debugfs.c
@@ -8,6 +8,8 @@
#include "super.h"
#include "mds_client.h"
+#ifdef CONFIG_DEBUG_FS
+
/*
* Implement /sys/kernel/debug/ceph fun
*
@@ -423,3 +425,24 @@ void ceph_debugfs_client_cleanup(struct ceph_client *client)
debugfs_remove(client->debugfs_dir);
}
+#else // CONFIG_DEBUG_FS
+
+int __init ceph_debugfs_init(void)
+{
+ return 0;
+}
+
+void ceph_debugfs_cleanup(void)
+{
+}
+
+int ceph_debugfs_client_init(struct ceph_client *client)
+{
+ return 0;
+}
+
+void ceph_debugfs_client_cleanup(struct ceph_client *client)
+{
+}
+
+#endif // CONFIG_DEBUG_FS