aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/debugfs.c
diff options
context:
space:
mode:
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