Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
b5cce521
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看板
提交
b5cce521
编写于
7月 20, 2016
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
qstr: constify instances in hfsplus
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
7f5458ec
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
11 deletion
+11
-11
fs/hfsplus/catalog.c
fs/hfsplus/catalog.c
+6
-6
fs/hfsplus/hfsplus_fs.h
fs/hfsplus/hfsplus_fs.h
+5
-5
未找到文件。
fs/hfsplus/catalog.c
浏览文件 @
b5cce521
...
@@ -40,7 +40,7 @@ int hfsplus_cat_bin_cmp_key(const hfsplus_btree_key *k1,
...
@@ -40,7 +40,7 @@ int hfsplus_cat_bin_cmp_key(const hfsplus_btree_key *k1,
/* Generates key for catalog file/folders record. */
/* Generates key for catalog file/folders record. */
int
hfsplus_cat_build_key
(
struct
super_block
*
sb
,
int
hfsplus_cat_build_key
(
struct
super_block
*
sb
,
hfsplus_btree_key
*
key
,
u32
parent
,
struct
qstr
*
str
)
hfsplus_btree_key
*
key
,
u32
parent
,
const
struct
qstr
*
str
)
{
{
int
len
,
err
;
int
len
,
err
;
...
@@ -174,7 +174,7 @@ static int hfsplus_cat_build_record(hfsplus_cat_entry *entry,
...
@@ -174,7 +174,7 @@ static int hfsplus_cat_build_record(hfsplus_cat_entry *entry,
static
int
hfsplus_fill_cat_thread
(
struct
super_block
*
sb
,
static
int
hfsplus_fill_cat_thread
(
struct
super_block
*
sb
,
hfsplus_cat_entry
*
entry
,
int
type
,
hfsplus_cat_entry
*
entry
,
int
type
,
u32
parentid
,
struct
qstr
*
str
)
u32
parentid
,
const
struct
qstr
*
str
)
{
{
int
err
;
int
err
;
...
@@ -250,7 +250,7 @@ static void hfsplus_subfolders_dec(struct inode *dir)
...
@@ -250,7 +250,7 @@ static void hfsplus_subfolders_dec(struct inode *dir)
}
}
int
hfsplus_create_cat
(
u32
cnid
,
struct
inode
*
dir
,
int
hfsplus_create_cat
(
u32
cnid
,
struct
inode
*
dir
,
struct
qstr
*
str
,
struct
inode
*
inode
)
const
struct
qstr
*
str
,
struct
inode
*
inode
)
{
{
struct
super_block
*
sb
=
dir
->
i_sb
;
struct
super_block
*
sb
=
dir
->
i_sb
;
struct
hfs_find_data
fd
;
struct
hfs_find_data
fd
;
...
@@ -318,7 +318,7 @@ int hfsplus_create_cat(u32 cnid, struct inode *dir,
...
@@ -318,7 +318,7 @@ int hfsplus_create_cat(u32 cnid, struct inode *dir,
return
err
;
return
err
;
}
}
int
hfsplus_delete_cat
(
u32
cnid
,
struct
inode
*
dir
,
struct
qstr
*
str
)
int
hfsplus_delete_cat
(
u32
cnid
,
struct
inode
*
dir
,
const
struct
qstr
*
str
)
{
{
struct
super_block
*
sb
=
dir
->
i_sb
;
struct
super_block
*
sb
=
dir
->
i_sb
;
struct
hfs_find_data
fd
;
struct
hfs_find_data
fd
;
...
@@ -415,8 +415,8 @@ int hfsplus_delete_cat(u32 cnid, struct inode *dir, struct qstr *str)
...
@@ -415,8 +415,8 @@ int hfsplus_delete_cat(u32 cnid, struct inode *dir, struct qstr *str)
}
}
int
hfsplus_rename_cat
(
u32
cnid
,
int
hfsplus_rename_cat
(
u32
cnid
,
struct
inode
*
src_dir
,
struct
qstr
*
src_name
,
struct
inode
*
src_dir
,
const
struct
qstr
*
src_name
,
struct
inode
*
dst_dir
,
struct
qstr
*
dst_name
)
struct
inode
*
dst_dir
,
const
struct
qstr
*
dst_name
)
{
{
struct
super_block
*
sb
=
src_dir
->
i_sb
;
struct
super_block
*
sb
=
src_dir
->
i_sb
;
struct
hfs_find_data
src_fd
,
dst_fd
;
struct
hfs_find_data
src_fd
,
dst_fd
;
...
...
fs/hfsplus/hfsplus_fs.h
浏览文件 @
b5cce521
...
@@ -445,17 +445,17 @@ int hfsplus_cat_case_cmp_key(const hfsplus_btree_key *k1,
...
@@ -445,17 +445,17 @@ int hfsplus_cat_case_cmp_key(const hfsplus_btree_key *k1,
int
hfsplus_cat_bin_cmp_key
(
const
hfsplus_btree_key
*
k1
,
int
hfsplus_cat_bin_cmp_key
(
const
hfsplus_btree_key
*
k1
,
const
hfsplus_btree_key
*
k2
);
const
hfsplus_btree_key
*
k2
);
int
hfsplus_cat_build_key
(
struct
super_block
*
sb
,
hfsplus_btree_key
*
key
,
int
hfsplus_cat_build_key
(
struct
super_block
*
sb
,
hfsplus_btree_key
*
key
,
u32
parent
,
struct
qstr
*
str
);
u32
parent
,
const
struct
qstr
*
str
);
void
hfsplus_cat_build_key_with_cnid
(
struct
super_block
*
sb
,
void
hfsplus_cat_build_key_with_cnid
(
struct
super_block
*
sb
,
hfsplus_btree_key
*
key
,
u32
parent
);
hfsplus_btree_key
*
key
,
u32
parent
);
void
hfsplus_cat_set_perms
(
struct
inode
*
inode
,
struct
hfsplus_perm
*
perms
);
void
hfsplus_cat_set_perms
(
struct
inode
*
inode
,
struct
hfsplus_perm
*
perms
);
int
hfsplus_find_cat
(
struct
super_block
*
sb
,
u32
cnid
,
int
hfsplus_find_cat
(
struct
super_block
*
sb
,
u32
cnid
,
struct
hfs_find_data
*
fd
);
struct
hfs_find_data
*
fd
);
int
hfsplus_create_cat
(
u32
cnid
,
struct
inode
*
dir
,
struct
qstr
*
str
,
int
hfsplus_create_cat
(
u32
cnid
,
struct
inode
*
dir
,
const
struct
qstr
*
str
,
struct
inode
*
inode
);
struct
inode
*
inode
);
int
hfsplus_delete_cat
(
u32
cnid
,
struct
inode
*
dir
,
struct
qstr
*
str
);
int
hfsplus_delete_cat
(
u32
cnid
,
struct
inode
*
dir
,
const
struct
qstr
*
str
);
int
hfsplus_rename_cat
(
u32
cnid
,
struct
inode
*
src_dir
,
struct
qstr
*
src_name
,
int
hfsplus_rename_cat
(
u32
cnid
,
struct
inode
*
src_dir
,
const
struct
qstr
*
src_name
,
struct
inode
*
dst_dir
,
struct
qstr
*
dst_name
);
struct
inode
*
dst_dir
,
const
struct
qstr
*
dst_name
);
/* dir.c */
/* dir.c */
extern
const
struct
inode_operations
hfsplus_dir_inode_operations
;
extern
const
struct
inode_operations
hfsplus_dir_inode_operations
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录