Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
104648ad
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
104648ad
编写于
3月 18, 2010
作者:
S
Sage Weil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ceph: reduce build_path debug output
Signed-off-by:
N
Sage Weil
<
sage@newdream.net
>
上级
31459fe4
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
6 deletion
+4
-6
fs/ceph/mds_client.c
fs/ceph/mds_client.c
+4
-6
未找到文件。
fs/ceph/mds_client.c
浏览文件 @
104648ad
...
...
@@ -1268,7 +1268,7 @@ char *ceph_mdsc_build_path(struct dentry *dentry, int *plen, u64 *base,
struct
inode
*
inode
=
temp
->
d_inode
;
if
(
inode
&&
ceph_snap
(
inode
)
==
CEPH_SNAPDIR
)
{
dout
(
"build_path
_dentry
path+%d: %p SNAPDIR
\n
"
,
dout
(
"build_path path+%d: %p SNAPDIR
\n
"
,
pos
,
temp
);
}
else
if
(
stop_on_nosnap
&&
inode
&&
ceph_snap
(
inode
)
==
CEPH_NOSNAP
)
{
...
...
@@ -1279,20 +1279,18 @@ char *ceph_mdsc_build_path(struct dentry *dentry, int *plen, u64 *base,
break
;
strncpy
(
path
+
pos
,
temp
->
d_name
.
name
,
temp
->
d_name
.
len
);
dout
(
"build_path_dentry path+%d: %p '%.*s'
\n
"
,
pos
,
temp
,
temp
->
d_name
.
len
,
path
+
pos
);
}
if
(
pos
)
path
[
--
pos
]
=
'/'
;
temp
=
temp
->
d_parent
;
if
(
temp
==
NULL
)
{
pr_err
(
"build_path
_dentry
corrupt dentry
\n
"
);
pr_err
(
"build_path corrupt dentry
\n
"
);
kfree
(
path
);
return
ERR_PTR
(
-
EINVAL
);
}
}
if
(
pos
!=
0
)
{
pr_err
(
"build_path
_dentry
did not end path lookup where "
pr_err
(
"build_path did not end path lookup where "
"expected, namelen is %d, pos is %d
\n
"
,
len
,
pos
);
/* presumably this is only possible if racing with a
rename of one of the parent directories (we can not
...
...
@@ -1304,7 +1302,7 @@ char *ceph_mdsc_build_path(struct dentry *dentry, int *plen, u64 *base,
*
base
=
ceph_ino
(
temp
->
d_inode
);
*
plen
=
len
;
dout
(
"build_path
_dentry
on %p %d built %llx '%.*s'
\n
"
,
dout
(
"build_path on %p %d built %llx '%.*s'
\n
"
,
dentry
,
atomic_read
(
&
dentry
->
d_count
),
*
base
,
len
,
path
);
return
path
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录