Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188656
b: refs/heads/master
c: 06edf04
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Dec 22, 2009
1 parent af7c954 commit 5fababd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e2885f06ce31d82b556be021acfa2eba160f29cc
refs/heads/master: 06edf046dd68ccbc7cf5f70f957a31702d0e7596
7 changes: 7 additions & 0 deletions trunk/fs/ceph/debugfs.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "ceph_debug.h"

#include <linux/device.h>
#include <linux/module.h>
#include <linux/ctype.h>
#include <linux/debugfs.h>
Expand All @@ -24,6 +25,7 @@
* .../monc - mon client state
* .../dentry_lru - dump contents of dentry lru
* .../caps - expose cap (reservation) stats
* .../bdi - symlink to ../../bdi/something
*/

static struct dentry *ceph_debugfs_dir;
Expand Down Expand Up @@ -407,6 +409,10 @@ int ceph_debugfs_client_init(struct ceph_client *client)
if (!client->debugfs_caps)
goto out;

sprintf(name, "../../bdi/%s", dev_name(client->sb->s_bdi->dev));
client->debugfs_bdi = debugfs_create_symlink("bdi", client->debugfs_dir,
name);

return 0;

out:
Expand All @@ -416,6 +422,7 @@ int ceph_debugfs_client_init(struct ceph_client *client)

void ceph_debugfs_client_cleanup(struct ceph_client *client)
{
debugfs_remove(client->debugfs_bdi);
debugfs_remove(client->debugfs_caps);
debugfs_remove(client->debugfs_dentry_lru);
debugfs_remove(client->debugfs_osdmap);
Expand Down
1 change: 1 addition & 0 deletions trunk/fs/ceph/super.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ struct ceph_client {
struct dentry *debugfs_monmap;
struct dentry *debugfs_mdsmap, *debugfs_osdmap;
struct dentry *debugfs_dir, *debugfs_dentry_lru, *debugfs_caps;
struct dentry *debugfs_bdi;
#endif
};

Expand Down

0 comments on commit 5fababd

Please sign in to comment.