Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
f66debf1
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
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看板
提交
f66debf1
编写于
8月 07, 2016
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
orangefs: use %pd/%pD
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
29b4817d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
34 addition
and
34 deletion
+34
-34
fs/orangefs/dir.c
fs/orangefs/dir.c
+2
-2
fs/orangefs/file.c
fs/orangefs/file.c
+2
-2
fs/orangefs/inode.c
fs/orangefs/inode.c
+6
-6
fs/orangefs/namei.c
fs/orangefs/namei.c
+22
-22
fs/orangefs/orangefs-debugfs.c
fs/orangefs/orangefs-debugfs.c
+2
-2
未找到文件。
fs/orangefs/dir.c
浏览文件 @
f66debf1
...
...
@@ -177,8 +177,8 @@ static int orangefs_readdir(struct file *file, struct dir_context *ctx)
}
gossip_debug
(
GOSSIP_DIR_DEBUG
,
"orangefs_readdir called on %
s
(pos=%llu)
\n
"
,
dentry
->
d_name
.
name
,
llu
(
pos
));
"orangefs_readdir called on %
pd
(pos=%llu)
\n
"
,
dentry
,
llu
(
pos
));
memset
(
&
readdir_response
,
0
,
sizeof
(
readdir_response
));
...
...
fs/orangefs/file.c
浏览文件 @
f66debf1
...
...
@@ -585,8 +585,8 @@ static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma)
static
int
orangefs_file_release
(
struct
inode
*
inode
,
struct
file
*
file
)
{
gossip_debug
(
GOSSIP_FILE_DEBUG
,
"orangefs_file_release: called on %
s
\n
"
,
file
->
f_path
.
dentry
->
d_name
.
name
);
"orangefs_file_release: called on %
pD
\n
"
,
file
);
orangefs_flush_inode
(
inode
);
...
...
fs/orangefs/inode.c
浏览文件 @
f66debf1
...
...
@@ -129,8 +129,8 @@ static ssize_t orangefs_direct_IO(struct kiocb *iocb,
struct
iov_iter
*
iter
)
{
gossip_debug
(
GOSSIP_INODE_DEBUG
,
"orangefs_direct_IO: %
s
\n
"
,
iocb
->
ki_filp
->
f_path
.
dentry
->
d_name
.
name
);
"orangefs_direct_IO: %
pD
\n
"
,
iocb
->
ki_filp
);
return
-
EINVAL
;
}
...
...
@@ -216,8 +216,8 @@ int orangefs_setattr(struct dentry *dentry, struct iattr *iattr)
struct
inode
*
inode
=
dentry
->
d_inode
;
gossip_debug
(
GOSSIP_INODE_DEBUG
,
"orangefs_setattr: called on %
s
\n
"
,
dentry
->
d_name
.
name
);
"orangefs_setattr: called on %
pd
\n
"
,
dentry
);
ret
=
inode_change_ok
(
inode
,
iattr
);
if
(
ret
)
...
...
@@ -259,8 +259,8 @@ int orangefs_getattr(struct vfsmount *mnt,
struct
orangefs_inode_s
*
orangefs_inode
=
NULL
;
gossip_debug
(
GOSSIP_INODE_DEBUG
,
"orangefs_getattr: called on %
s
\n
"
,
dentry
->
d_name
.
name
);
"orangefs_getattr: called on %
pd
\n
"
,
dentry
);
ret
=
orangefs_inode_getattr
(
inode
,
0
,
0
);
if
(
ret
==
0
)
{
...
...
fs/orangefs/namei.c
浏览文件 @
f66debf1
...
...
@@ -24,9 +24,9 @@ static int orangefs_create(struct inode *dir,
struct
inode
*
inode
;
int
ret
;
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: %
s
\n
"
,
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: %
pd
\n
"
,
__func__
,
dentry
->
d_name
.
name
);
dentry
);
new_op
=
op_alloc
(
ORANGEFS_VFS_OP_CREATE
);
if
(
!
new_op
)
...
...
@@ -43,9 +43,9 @@ static int orangefs_create(struct inode *dir,
ret
=
service_operation
(
new_op
,
__func__
,
get_interruptible_flag
(
dir
));
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: %
s
: handle:%pU: fsid:%d: new_op:%p: ret:%d:
\n
"
,
"%s: %
pd
: handle:%pU: fsid:%d: new_op:%p: ret:%d:
\n
"
,
__func__
,
dentry
->
d_name
.
name
,
dentry
,
&
new_op
->
downcall
.
resp
.
create
.
refn
.
khandle
,
new_op
->
downcall
.
resp
.
create
.
refn
.
fs_id
,
new_op
,
...
...
@@ -57,18 +57,18 @@ static int orangefs_create(struct inode *dir,
inode
=
orangefs_new_inode
(
dir
->
i_sb
,
dir
,
S_IFREG
|
mode
,
0
,
&
new_op
->
downcall
.
resp
.
create
.
refn
);
if
(
IS_ERR
(
inode
))
{
gossip_err
(
"%s: Failed to allocate inode for file :%
s
:
\n
"
,
gossip_err
(
"%s: Failed to allocate inode for file :%
pd
:
\n
"
,
__func__
,
dentry
->
d_name
.
name
);
dentry
);
ret
=
PTR_ERR
(
inode
);
goto
out
;
}
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: Assigned inode :%pU: for file :%
s
:
\n
"
,
"%s: Assigned inode :%pU: for file :%
pd
:
\n
"
,
__func__
,
get_khandle_from_ino
(
inode
),
dentry
->
d_name
.
name
);
dentry
);
d_instantiate
(
dentry
,
inode
);
unlock_new_inode
(
inode
);
...
...
@@ -76,9 +76,9 @@ static int orangefs_create(struct inode *dir,
ORANGEFS_I
(
inode
)
->
getattr_time
=
jiffies
-
1
;
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: dentry instantiated for %
s
\n
"
,
"%s: dentry instantiated for %
pd
\n
"
,
__func__
,
dentry
->
d_name
.
name
);
dentry
);
SetMtimeFlag
(
parent
);
dir
->
i_mtime
=
dir
->
i_ctime
=
current_fs_time
(
dir
->
i_sb
);
...
...
@@ -87,9 +87,9 @@ static int orangefs_create(struct inode *dir,
out:
op_release
(
new_op
);
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: %
s
: returning %d
\n
"
,
"%s: %
pd
: returning %d
\n
"
,
__func__
,
dentry
->
d_name
.
name
,
dentry
,
ret
);
return
ret
;
}
...
...
@@ -115,8 +115,8 @@ static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry,
* -EEXIST on O_EXCL opens, which is broken if we skip this lookup
* in the create path)
*/
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s called on %
s
\n
"
,
__func__
,
dentry
->
d_name
.
name
);
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s called on %
pd
\n
"
,
__func__
,
dentry
);
if
(
dentry
->
d_name
.
len
>
(
ORANGEFS_NAME_MAX
-
1
))
return
ERR_PTR
(
-
ENAMETOOLONG
);
...
...
@@ -169,9 +169,9 @@ static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry,
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"orangefs_lookup: Adding *negative* dentry "
"%p for %
s
\n
"
,
"%p for %
pd
\n
"
,
dentry
,
dentry
->
d_name
.
name
);
dentry
);
d_add
(
dentry
,
NULL
);
res
=
NULL
;
...
...
@@ -224,10 +224,10 @@ static int orangefs_unlink(struct inode *dir, struct dentry *dentry)
int
ret
;
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"%s: called on %
s
\n
"
"%s: called on %
pd
\n
"
" (inode %pU): Parent is %pU | fs_id %d
\n
"
,
__func__
,
dentry
->
d_name
.
name
,
dentry
,
get_khandle_from_ino
(
inode
),
&
parent
->
refn
.
khandle
,
parent
->
refn
.
fs_id
);
...
...
@@ -326,9 +326,9 @@ static int orangefs_symlink(struct inode *dir,
ORANGEFS_I
(
inode
)
->
getattr_time
=
jiffies
-
1
;
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"Inode (Symlink) %pU -> %
s
\n
"
,
"Inode (Symlink) %pU -> %
pd
\n
"
,
get_khandle_from_ino
(
inode
),
dentry
->
d_name
.
name
);
dentry
);
SetMtimeFlag
(
parent
);
dir
->
i_mtime
=
dir
->
i_ctime
=
current_fs_time
(
dir
->
i_sb
);
...
...
@@ -390,9 +390,9 @@ static int orangefs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode
ORANGEFS_I
(
inode
)
->
getattr_time
=
jiffies
-
1
;
gossip_debug
(
GOSSIP_NAME_DEBUG
,
"Inode (Directory) %pU -> %
s
\n
"
,
"Inode (Directory) %pU -> %
pd
\n
"
,
get_khandle_from_ino
(
inode
),
dentry
->
d_name
.
name
);
dentry
);
/*
* NOTE: we have no good way to keep nlink consistent for directories
...
...
fs/orangefs/orangefs-debugfs.c
浏览文件 @
f66debf1
...
...
@@ -350,8 +350,8 @@ static ssize_t orangefs_debug_write(struct file *file,
struct
client_debug_mask
c_mask
=
{
NULL
,
0
,
0
};
gossip_debug
(
GOSSIP_DEBUGFS_DEBUG
,
"orangefs_debug_write: %
s
\n
"
,
file
->
f_path
.
dentry
->
d_name
.
name
);
"orangefs_debug_write: %
pD
\n
"
,
file
);
/*
* Thwart users who try to jamb a ridiculous number
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录