Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
5253487e
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
5253487e
编写于
2月 16, 2016
作者:
M
Mike Marshall
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Orangefs: make some gossip statements more helpful.
Signed-off-by:
N
Mike Marshall
<
hubcap@omnibond.com
>
上级
897c5df6
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
41 addition
and
21 deletion
+41
-21
fs/orangefs/inode.c
fs/orangefs/inode.c
+2
-2
fs/orangefs/namei.c
fs/orangefs/namei.c
+29
-15
fs/orangefs/waitqueue.c
fs/orangefs/waitqueue.c
+10
-4
未找到文件。
fs/orangefs/inode.c
浏览文件 @
5253487e
...
...
@@ -443,8 +443,8 @@ struct inode *orangefs_new_inode(struct super_block *sb, struct inode *dir,
int
error
;
gossip_debug
(
GOSSIP_INODE_DEBUG
,
"
orangefs_get_custom_inode_common: called
\n
"
"(sb is %p | MAJOR(dev)=%u | MINOR(dev)=%u mode=%o)
\n
"
,
"
%s:(sb is %p | MAJOR(dev)=%u | MINOR(dev)=%u mode=%o)
\n
"
,
__func__
,
sb
,
MAJOR
(
dev
),
MINOR
(
dev
),
...
...
fs/orangefs/namei.c
浏览文件 @
5253487e
...
...
@@ -24,7 +24,9 @@ static int orangefs_create(struct inode *dir,
struct
inode
*
inode
;
int
ret
;
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: called
\n
"
,
__func__
);
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: %s
\n
"
,
__func__
,
dentry
->
d_name
.
name
);
new_op
=
op_alloc
(
ORANGEFS_VFS_OP_CREATE
);
if
(
!
new_op
)
...
...
@@ -41,35 +43,39 @@ static int orangefs_create(struct inode *dir,
ret
=
service_operation
(
new_op
,
__func__
,
get_interruptible_flag
(
dir
));
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"Create Got ORANGEFS handle %pU on fsid %d (ret=%d)
\n
"
,
"%s: %s: handle:%pU: fsid:%d: new_op:%p: ret:%d:
\n
"
,
__func__
,
dentry
->
d_name
.
name
,
&
new_op
->
downcall
.
resp
.
create
.
refn
.
khandle
,
new_op
->
downcall
.
resp
.
create
.
refn
.
fs_id
,
ret
);
new_op
->
downcall
.
resp
.
create
.
refn
.
fs_id
,
new_op
,
ret
);
if
(
ret
<
0
)
{
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: failed with error code %d
\n
"
,
__func__
,
ret
);
if
(
ret
<
0
)
goto
out
;
}
inode
=
orangefs_new_inode
(
dir
->
i_sb
,
dir
,
S_IFREG
|
mode
,
0
,
&
new_op
->
downcall
.
resp
.
create
.
refn
);
if
(
IS_ERR
(
inode
))
{
gossip_err
(
"*** Failed to allocate orangefs file inode
\n
"
);
gossip_err
(
"%s: Failed to allocate inode for file :%s:
\n
"
,
__func__
,
dentry
->
d_name
.
name
);
ret
=
PTR_ERR
(
inode
);
goto
out
;
}
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"Assigned file inode new number of %pU
\n
"
,
get_khandle_from_ino
(
inode
));
"%s: Assigned inode :%pU: for file :%s:
\n
"
,
__func__
,
get_khandle_from_ino
(
inode
),
dentry
->
d_name
.
name
);
d_instantiate
(
dentry
,
inode
);
unlock_new_inode
(
inode
);
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"
Inode (Regular File) %pU ->
%s
\n
"
,
get_khandle_from_ino
(
inode
)
,
"
%s: dentry instantiated for
%s
\n
"
,
__func__
,
dentry
->
d_name
.
name
);
SetMtimeFlag
(
parent
);
...
...
@@ -78,7 +84,11 @@ static int orangefs_create(struct inode *dir,
ret
=
0
;
out:
op_release
(
new_op
);
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: returning %d
\n
"
,
__func__
,
ret
);
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: %s: returning %d
\n
"
,
__func__
,
dentry
->
d_name
.
name
,
ret
);
return
ret
;
}
...
...
@@ -229,7 +239,11 @@ static int orangefs_unlink(struct inode *dir, struct dentry *dentry)
ret
=
service_operation
(
new_op
,
"orangefs_unlink"
,
get_interruptible_flag
(
inode
));
/* when request is serviced properly, free req op struct */
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: service_operation returned:%d:
\n
"
,
__func__
,
ret
);
op_release
(
new_op
);
if
(
!
ret
)
{
...
...
fs/orangefs/waitqueue.c
浏览文件 @
5253487e
...
...
@@ -67,11 +67,10 @@ int service_operation(struct orangefs_kernel_op_s *op,
retry_servicing:
op
->
downcall
.
status
=
0
;
gossip_debug
(
GOSSIP_WAIT_DEBUG
,
"orangefs: service_operation: %s %p
\n
"
,
"%s: %s op:%p: process:%s: pid:%d:
\n
"
,
__func__
,
op_name
,
op
);
gossip_debug
(
GOSSIP_WAIT_DEBUG
,
"orangefs: operation posted by process: %s, pid: %i
\n
"
,
op
,
current
->
comm
,
current
->
pid
);
...
...
@@ -122,6 +121,13 @@ int service_operation(struct orangefs_kernel_op_s *op,
ret
=
wait_for_matching_downcall
(
op
,
timeout
,
flags
&
ORANGEFS_OP_INTERRUPTIBLE
);
gossip_debug
(
GOSSIP_WAIT_DEBUG
,
"%s: wait_for_matching_downcall returned %d for %p
\n
"
,
__func__
,
ret
,
op
);
if
(
!
ret
)
{
spin_unlock
(
&
op
->
lock
);
/* got matching downcall; make sure status is in errno format */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录