Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
06edf046
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
06edf046
编写于
12月 15, 2009
作者:
S
Sage Weil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ceph: include link to bdi in debugfs
Signed-off-by:
N
Sage Weil
<
sage@newdream.net
>
上级
e2885f06
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
0 deletion
+8
-0
fs/ceph/debugfs.c
fs/ceph/debugfs.c
+7
-0
fs/ceph/super.h
fs/ceph/super.h
+1
-0
未找到文件。
fs/ceph/debugfs.c
浏览文件 @
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 @@ 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
);
...
...
fs/ceph/super.h
浏览文件 @
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
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录