Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
35c265e0
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看板
提交
35c265e0
编写于
8月 19, 2014
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cifs: switch to use of %p[dD]
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
c2ca0fcd
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
19 addition
and
19 deletion
+19
-19
fs/cifs/dir.c
fs/cifs/dir.c
+7
-7
fs/cifs/file.c
fs/cifs/file.c
+6
-6
fs/cifs/inode.c
fs/cifs/inode.c
+6
-6
未找到文件。
fs/cifs/dir.c
浏览文件 @
35c265e0
...
@@ -461,8 +461,8 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry,
...
@@ -461,8 +461,8 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry,
xid
=
get_xid
();
xid
=
get_xid
();
cifs_dbg
(
FYI
,
"parent inode = 0x%p name is: %
s
and dentry = 0x%p
\n
"
,
cifs_dbg
(
FYI
,
"parent inode = 0x%p name is: %
pd
and dentry = 0x%p
\n
"
,
inode
,
direntry
->
d_name
.
name
,
direntry
);
inode
,
direntry
,
direntry
);
tlink
=
cifs_sb_tlink
(
CIFS_SB
(
inode
->
i_sb
));
tlink
=
cifs_sb_tlink
(
CIFS_SB
(
inode
->
i_sb
));
if
(
IS_ERR
(
tlink
))
{
if
(
IS_ERR
(
tlink
))
{
...
@@ -540,8 +540,8 @@ int cifs_create(struct inode *inode, struct dentry *direntry, umode_t mode,
...
@@ -540,8 +540,8 @@ int cifs_create(struct inode *inode, struct dentry *direntry, umode_t mode,
struct
cifs_fid
fid
;
struct
cifs_fid
fid
;
__u32
oplock
;
__u32
oplock
;
cifs_dbg
(
FYI
,
"cifs_create parent inode = 0x%p name is: %
s
and dentry = 0x%p
\n
"
,
cifs_dbg
(
FYI
,
"cifs_create parent inode = 0x%p name is: %
pd
and dentry = 0x%p
\n
"
,
inode
,
direntry
->
d_name
.
name
,
direntry
);
inode
,
direntry
,
direntry
);
tlink
=
cifs_sb_tlink
(
CIFS_SB
(
inode
->
i_sb
));
tlink
=
cifs_sb_tlink
(
CIFS_SB
(
inode
->
i_sb
));
rc
=
PTR_ERR
(
tlink
);
rc
=
PTR_ERR
(
tlink
);
...
@@ -713,8 +713,8 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
...
@@ -713,8 +713,8 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
xid
=
get_xid
();
xid
=
get_xid
();
cifs_dbg
(
FYI
,
"parent inode = 0x%p name is: %
s
and dentry = 0x%p
\n
"
,
cifs_dbg
(
FYI
,
"parent inode = 0x%p name is: %
pd
and dentry = 0x%p
\n
"
,
parent_dir_inode
,
direntry
->
d_name
.
name
,
direntry
);
parent_dir_inode
,
direntry
,
direntry
);
/* check whether path exists */
/* check whether path exists */
...
@@ -833,7 +833,7 @@ cifs_d_revalidate(struct dentry *direntry, unsigned int flags)
...
@@ -833,7 +833,7 @@ cifs_d_revalidate(struct dentry *direntry, unsigned int flags)
{
{
int rc = 0;
int rc = 0;
cifs_dbg(FYI, "In cifs d_delete, name = %
s\n", direntry->d_name.name
);
cifs_dbg(FYI, "In cifs d_delete, name = %
pd\n", direntry
);
return rc;
return rc;
} */
} */
...
...
fs/cifs/file.c
浏览文件 @
35c265e0
...
@@ -1650,8 +1650,8 @@ cifs_write(struct cifsFileInfo *open_file, __u32 pid, const char *write_data,
...
@@ -1650,8 +1650,8 @@ cifs_write(struct cifsFileInfo *open_file, __u32 pid, const char *write_data,
cifs_sb
=
CIFS_SB
(
dentry
->
d_sb
);
cifs_sb
=
CIFS_SB
(
dentry
->
d_sb
);
cifs_dbg
(
FYI
,
"write %zd bytes to offset %lld of %
s
\n
"
,
cifs_dbg
(
FYI
,
"write %zd bytes to offset %lld of %
pd
\n
"
,
write_size
,
*
offset
,
dentry
->
d_name
.
name
);
write_size
,
*
offset
,
dentry
);
tcon
=
tlink_tcon
(
open_file
->
tlink
);
tcon
=
tlink_tcon
(
open_file
->
tlink
);
server
=
tcon
->
ses
->
server
;
server
=
tcon
->
ses
->
server
;
...
@@ -2273,8 +2273,8 @@ int cifs_strict_fsync(struct file *file, loff_t start, loff_t end,
...
@@ -2273,8 +2273,8 @@ int cifs_strict_fsync(struct file *file, loff_t start, loff_t end,
xid
=
get_xid
();
xid
=
get_xid
();
cifs_dbg
(
FYI
,
"Sync file - name: %
s
datasync: 0x%x
\n
"
,
cifs_dbg
(
FYI
,
"Sync file - name: %
pD
datasync: 0x%x
\n
"
,
file
->
f_path
.
dentry
->
d_name
.
name
,
datasync
);
file
,
datasync
);
if
(
!
CIFS_CACHE_READ
(
CIFS_I
(
inode
)))
{
if
(
!
CIFS_CACHE_READ
(
CIFS_I
(
inode
)))
{
rc
=
cifs_zap_mapping
(
inode
);
rc
=
cifs_zap_mapping
(
inode
);
...
@@ -2315,8 +2315,8 @@ int cifs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
...
@@ -2315,8 +2315,8 @@ int cifs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
xid
=
get_xid
();
xid
=
get_xid
();
cifs_dbg
(
FYI
,
"Sync file - name: %
s
datasync: 0x%x
\n
"
,
cifs_dbg
(
FYI
,
"Sync file - name: %
pD
datasync: 0x%x
\n
"
,
file
->
f_path
.
dentry
->
d_name
.
name
,
datasync
);
file
,
datasync
);
tcon
=
tlink_tcon
(
smbfile
->
tlink
);
tcon
=
tlink_tcon
(
smbfile
->
tlink
);
if
(
!
(
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_NOSSYNC
))
{
if
(
!
(
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_NOSSYNC
))
{
...
...
fs/cifs/inode.c
浏览文件 @
35c265e0
...
@@ -1419,8 +1419,8 @@ cifs_posix_mkdir(struct inode *inode, struct dentry *dentry, umode_t mode,
...
@@ -1419,8 +1419,8 @@ cifs_posix_mkdir(struct inode *inode, struct dentry *dentry, umode_t mode,
d_instantiate
(
dentry
,
newinode
);
d_instantiate
(
dentry
,
newinode
);
#ifdef CONFIG_CIFS_DEBUG2
#ifdef CONFIG_CIFS_DEBUG2
cifs_dbg
(
FYI
,
"instantiated dentry %p %
s
to inode %p
\n
"
,
cifs_dbg
(
FYI
,
"instantiated dentry %p %
pd
to inode %p
\n
"
,
dentry
,
dentry
->
d_name
.
name
,
newinode
);
dentry
,
dentry
,
newinode
);
if
(
newinode
->
i_nlink
!=
2
)
if
(
newinode
->
i_nlink
!=
2
)
cifs_dbg
(
FYI
,
"unexpected number of links %d
\n
"
,
cifs_dbg
(
FYI
,
"unexpected number of links %d
\n
"
,
...
@@ -2111,8 +2111,8 @@ cifs_setattr_unix(struct dentry *direntry, struct iattr *attrs)
...
@@ -2111,8 +2111,8 @@ cifs_setattr_unix(struct dentry *direntry, struct iattr *attrs)
struct
cifs_unix_set_info_args
*
args
=
NULL
;
struct
cifs_unix_set_info_args
*
args
=
NULL
;
struct
cifsFileInfo
*
open_file
;
struct
cifsFileInfo
*
open_file
;
cifs_dbg
(
FYI
,
"setattr_unix on file %
s
attrs->ia_valid=0x%x
\n
"
,
cifs_dbg
(
FYI
,
"setattr_unix on file %
pd
attrs->ia_valid=0x%x
\n
"
,
direntry
->
d_name
.
name
,
attrs
->
ia_valid
);
direntry
,
attrs
->
ia_valid
);
xid
=
get_xid
();
xid
=
get_xid
();
...
@@ -2254,8 +2254,8 @@ cifs_setattr_nounix(struct dentry *direntry, struct iattr *attrs)
...
@@ -2254,8 +2254,8 @@ cifs_setattr_nounix(struct dentry *direntry, struct iattr *attrs)
xid
=
get_xid
();
xid
=
get_xid
();
cifs_dbg
(
FYI
,
"setattr on file %
s
attrs->iavalid 0x%x
\n
"
,
cifs_dbg
(
FYI
,
"setattr on file %
pd
attrs->iavalid 0x%x
\n
"
,
direntry
->
d_name
.
name
,
attrs
->
ia_valid
);
direntry
,
attrs
->
ia_valid
);
if
(
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_NO_PERM
)
if
(
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_NO_PERM
)
attrs
->
ia_valid
|=
ATTR_FORCE
;
attrs
->
ia_valid
|=
ATTR_FORCE
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录