Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
8ac790f3
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看板
提交
8ac790f3
编写于
7月 20, 2016
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
qstr: constify instances in autofs4
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
71e93963
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
6 addition
and
6 deletion
+6
-6
fs/autofs4/root.c
fs/autofs4/root.c
+4
-4
fs/autofs4/waitq.c
fs/autofs4/waitq.c
+2
-2
未找到文件。
fs/autofs4/root.c
浏览文件 @
8ac790f3
...
@@ -159,7 +159,7 @@ static struct dentry *autofs4_lookup_active(struct dentry *dentry)
...
@@ -159,7 +159,7 @@ static struct dentry *autofs4_lookup_active(struct dentry *dentry)
{
{
struct
autofs_sb_info
*
sbi
=
autofs4_sbi
(
dentry
->
d_sb
);
struct
autofs_sb_info
*
sbi
=
autofs4_sbi
(
dentry
->
d_sb
);
struct
dentry
*
parent
=
dentry
->
d_parent
;
struct
dentry
*
parent
=
dentry
->
d_parent
;
struct
qstr
*
name
=
&
dentry
->
d_name
;
const
struct
qstr
*
name
=
&
dentry
->
d_name
;
unsigned
int
len
=
name
->
len
;
unsigned
int
len
=
name
->
len
;
unsigned
int
hash
=
name
->
hash
;
unsigned
int
hash
=
name
->
hash
;
const
unsigned
char
*
str
=
name
->
name
;
const
unsigned
char
*
str
=
name
->
name
;
...
@@ -172,7 +172,7 @@ static struct dentry *autofs4_lookup_active(struct dentry *dentry)
...
@@ -172,7 +172,7 @@ static struct dentry *autofs4_lookup_active(struct dentry *dentry)
list_for_each
(
p
,
head
)
{
list_for_each
(
p
,
head
)
{
struct
autofs_info
*
ino
;
struct
autofs_info
*
ino
;
struct
dentry
*
active
;
struct
dentry
*
active
;
struct
qstr
*
qstr
;
const
struct
qstr
*
qstr
;
ino
=
list_entry
(
p
,
struct
autofs_info
,
active
);
ino
=
list_entry
(
p
,
struct
autofs_info
,
active
);
active
=
ino
->
dentry
;
active
=
ino
->
dentry
;
...
@@ -214,7 +214,7 @@ static struct dentry *autofs4_lookup_expiring(struct dentry *dentry,
...
@@ -214,7 +214,7 @@ static struct dentry *autofs4_lookup_expiring(struct dentry *dentry,
{
{
struct
autofs_sb_info
*
sbi
=
autofs4_sbi
(
dentry
->
d_sb
);
struct
autofs_sb_info
*
sbi
=
autofs4_sbi
(
dentry
->
d_sb
);
struct
dentry
*
parent
=
dentry
->
d_parent
;
struct
dentry
*
parent
=
dentry
->
d_parent
;
struct
qstr
*
name
=
&
dentry
->
d_name
;
const
struct
qstr
*
name
=
&
dentry
->
d_name
;
unsigned
int
len
=
name
->
len
;
unsigned
int
len
=
name
->
len
;
unsigned
int
hash
=
name
->
hash
;
unsigned
int
hash
=
name
->
hash
;
const
unsigned
char
*
str
=
name
->
name
;
const
unsigned
char
*
str
=
name
->
name
;
...
@@ -227,7 +227,7 @@ static struct dentry *autofs4_lookup_expiring(struct dentry *dentry,
...
@@ -227,7 +227,7 @@ static struct dentry *autofs4_lookup_expiring(struct dentry *dentry,
list_for_each
(
p
,
head
)
{
list_for_each
(
p
,
head
)
{
struct
autofs_info
*
ino
;
struct
autofs_info
*
ino
;
struct
dentry
*
expiring
;
struct
dentry
*
expiring
;
struct
qstr
*
qstr
;
const
struct
qstr
*
qstr
;
if
(
rcu_walk
)
{
if
(
rcu_walk
)
{
spin_unlock
(
&
sbi
->
lookup_lock
);
spin_unlock
(
&
sbi
->
lookup_lock
);
...
...
fs/autofs4/waitq.c
浏览文件 @
8ac790f3
...
@@ -225,7 +225,7 @@ static int autofs4_getpath(struct autofs_sb_info *sbi,
...
@@ -225,7 +225,7 @@ static int autofs4_getpath(struct autofs_sb_info *sbi,
}
}
static
struct
autofs_wait_queue
*
static
struct
autofs_wait_queue
*
autofs4_find_wait
(
struct
autofs_sb_info
*
sbi
,
struct
qstr
*
qstr
)
autofs4_find_wait
(
struct
autofs_sb_info
*
sbi
,
const
struct
qstr
*
qstr
)
{
{
struct
autofs_wait_queue
*
wq
;
struct
autofs_wait_queue
*
wq
;
...
@@ -249,7 +249,7 @@ autofs4_find_wait(struct autofs_sb_info *sbi, struct qstr *qstr)
...
@@ -249,7 +249,7 @@ autofs4_find_wait(struct autofs_sb_info *sbi, struct qstr *qstr)
*/
*/
static
int
validate_request
(
struct
autofs_wait_queue
**
wait
,
static
int
validate_request
(
struct
autofs_wait_queue
**
wait
,
struct
autofs_sb_info
*
sbi
,
struct
autofs_sb_info
*
sbi
,
struct
qstr
*
qstr
,
const
struct
qstr
*
qstr
,
struct
dentry
*
dentry
,
enum
autofs_notify
notify
)
struct
dentry
*
dentry
,
enum
autofs_notify
notify
)
{
{
struct
autofs_wait_queue
*
wq
;
struct
autofs_wait_queue
*
wq
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录