Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
d53d0f74
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看板
提交
d53d0f74
编写于
5年前
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ceph: use errorfc() and friends instead of spelling the prefix out
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
a3ff937b
无相关合并请求
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
9 deletion
+9
-9
fs/ceph/cache.c
fs/ceph/cache.c
+2
-2
fs/ceph/super.c
fs/ceph/super.c
+7
-7
未找到文件。
fs/ceph/cache.c
浏览文件 @
d53d0f74
...
@@ -67,7 +67,7 @@ int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc)
...
@@ -67,7 +67,7 @@ int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc)
if
(
uniq_len
&&
memcmp
(
ent
->
uniquifier
,
fscache_uniq
,
uniq_len
))
if
(
uniq_len
&&
memcmp
(
ent
->
uniquifier
,
fscache_uniq
,
uniq_len
))
continue
;
continue
;
errorf
(
fc
,
"ceph:
fscache cookie already registered for fsid %pU, use fsc=<uniquifier> option"
,
errorf
c
(
fc
,
"
fscache cookie already registered for fsid %pU, use fsc=<uniquifier> option"
,
fsid
);
fsid
);
err
=
-
EBUSY
;
err
=
-
EBUSY
;
goto
out_unlock
;
goto
out_unlock
;
...
@@ -96,7 +96,7 @@ int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc)
...
@@ -96,7 +96,7 @@ int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc)
list_add_tail
(
&
ent
->
list
,
&
ceph_fscache_list
);
list_add_tail
(
&
ent
->
list
,
&
ceph_fscache_list
);
}
else
{
}
else
{
kfree
(
ent
);
kfree
(
ent
);
errorf
(
fc
,
"ceph:
unable to register fscache cookie for fsid %pU"
,
errorf
c
(
fc
,
"
unable to register fscache cookie for fsid %pU"
,
fsid
);
fsid
);
/* all other fs ignore this error */
/* all other fs ignore this error */
}
}
...
...
This diff is collapsed.
Click to expand it.
fs/ceph/super.c
浏览文件 @
d53d0f74
...
@@ -222,7 +222,7 @@ static int ceph_parse_source(struct fs_parameter *param, struct fs_context *fc)
...
@@ -222,7 +222,7 @@ static int ceph_parse_source(struct fs_parameter *param, struct fs_context *fc)
dout
(
"%s '%s'
\n
"
,
__func__
,
dev_name
);
dout
(
"%s '%s'
\n
"
,
__func__
,
dev_name
);
if
(
!
dev_name
||
!*
dev_name
)
if
(
!
dev_name
||
!*
dev_name
)
return
invalf
(
fc
,
"ceph:
Empty source"
);
return
invalf
c
(
fc
,
"
Empty source"
);
dev_name_end
=
strchr
(
dev_name
,
'/'
);
dev_name_end
=
strchr
(
dev_name
,
'/'
);
if
(
dev_name_end
)
{
if
(
dev_name_end
)
{
...
@@ -238,7 +238,7 @@ static int ceph_parse_source(struct fs_parameter *param, struct fs_context *fc)
...
@@ -238,7 +238,7 @@ static int ceph_parse_source(struct fs_parameter *param, struct fs_context *fc)
dev_name_end
--
;
/* back up to ':' separator */
dev_name_end
--
;
/* back up to ':' separator */
if
(
dev_name_end
<
dev_name
||
*
dev_name_end
!=
':'
)
if
(
dev_name_end
<
dev_name
||
*
dev_name_end
!=
':'
)
return
invalf
(
fc
,
"ceph:
No path or : separator in source"
);
return
invalf
c
(
fc
,
"
No path or : separator in source"
);
dout
(
"device name '%.*s'
\n
"
,
(
int
)(
dev_name_end
-
dev_name
),
dev_name
);
dout
(
"device name '%.*s'
\n
"
,
(
int
)(
dev_name_end
-
dev_name
),
dev_name
);
if
(
fsopt
->
server_path
)
if
(
fsopt
->
server_path
)
...
@@ -294,7 +294,7 @@ static int ceph_parse_mount_param(struct fs_context *fc,
...
@@ -294,7 +294,7 @@ static int ceph_parse_mount_param(struct fs_context *fc,
break
;
break
;
case
Opt_source
:
case
Opt_source
:
if
(
fc
->
source
)
if
(
fc
->
source
)
return
invalf
(
fc
,
"ceph:
Multiple sources specified"
);
return
invalf
c
(
fc
,
"
Multiple sources specified"
);
return
ceph_parse_source
(
param
,
fc
);
return
ceph_parse_source
(
param
,
fc
);
case
Opt_wsize
:
case
Opt_wsize
:
if
(
result
.
uint_32
<
PAGE_SIZE
||
if
(
result
.
uint_32
<
PAGE_SIZE
||
...
@@ -385,7 +385,7 @@ static int ceph_parse_mount_param(struct fs_context *fc,
...
@@ -385,7 +385,7 @@ static int ceph_parse_mount_param(struct fs_context *fc,
}
}
break
;
break
;
#else
#else
return
invalf
(
fc
,
"ceph:
fscache support is disabled"
);
return
invalf
c
(
fc
,
"
fscache support is disabled"
);
#endif
#endif
case
Opt_poolperm
:
case
Opt_poolperm
:
if
(
!
result
.
negated
)
if
(
!
result
.
negated
)
...
@@ -416,7 +416,7 @@ static int ceph_parse_mount_param(struct fs_context *fc,
...
@@ -416,7 +416,7 @@ static int ceph_parse_mount_param(struct fs_context *fc,
#ifdef CONFIG_CEPH_FS_POSIX_ACL
#ifdef CONFIG_CEPH_FS_POSIX_ACL
fc
->
sb_flags
|=
SB_POSIXACL
;
fc
->
sb_flags
|=
SB_POSIXACL
;
#else
#else
return
invalf
(
fc
,
"ceph:
POSIX ACL support is disabled"
);
return
invalf
c
(
fc
,
"
POSIX ACL support is disabled"
);
#endif
#endif
}
else
{
}
else
{
fc
->
sb_flags
&=
~
SB_POSIXACL
;
fc
->
sb_flags
&=
~
SB_POSIXACL
;
...
@@ -428,7 +428,7 @@ static int ceph_parse_mount_param(struct fs_context *fc,
...
@@ -428,7 +428,7 @@ static int ceph_parse_mount_param(struct fs_context *fc,
return
0
;
return
0
;
out_of_range:
out_of_range:
return
invalf
(
fc
,
"ceph:
%s out of range"
,
param
->
key
);
return
invalf
c
(
fc
,
"
%s out of range"
,
param
->
key
);
}
}
static
void
destroy_mount_options
(
struct
ceph_mount_options
*
args
)
static
void
destroy_mount_options
(
struct
ceph_mount_options
*
args
)
...
@@ -1012,7 +1012,7 @@ static int ceph_get_tree(struct fs_context *fc)
...
@@ -1012,7 +1012,7 @@ static int ceph_get_tree(struct fs_context *fc)
dout
(
"ceph_get_tree
\n
"
);
dout
(
"ceph_get_tree
\n
"
);
if
(
!
fc
->
source
)
if
(
!
fc
->
source
)
return
invalf
(
fc
,
"ceph:
No source"
);
return
invalf
c
(
fc
,
"
No source"
);
#ifdef CONFIG_CEPH_FS_POSIX_ACL
#ifdef CONFIG_CEPH_FS_POSIX_ACL
fc
->
sb_flags
|=
SB_POSIXACL
;
fc
->
sb_flags
|=
SB_POSIXACL
;
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部