Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
06edf046
Commit
06edf046
authored
Dec 15, 2009
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: include link to bdi in debugfs
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
e2885f06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
fs/ceph/debugfs.c
fs/ceph/debugfs.c
+7
-0
fs/ceph/super.h
fs/ceph/super.h
+1
-0
No files found.
fs/ceph/debugfs.c
View file @
06edf046
#include "ceph_debug.h"
#include <linux/device.h>
#include <linux/module.h>
#include <linux/ctype.h>
#include <linux/debugfs.h>
...
...
@@ -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
;
...
...
@@ -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:
...
...
@@ -416,6 +422,7 @@ out:
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
);
...
...
fs/ceph/super.h
View file @
06edf046
...
...
@@ -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
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment