Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
71e93963
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看板
提交
71e93963
编写于
8年前
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
qstr: constify instances in hfs
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
b5cce521
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
15 deletion
+15
-15
fs/hfs/catalog.c
fs/hfs/catalog.c
+6
-6
fs/hfs/hfs_fs.h
fs/hfs/hfs_fs.h
+7
-7
fs/hfs/inode.c
fs/hfs/inode.c
+1
-1
fs/hfs/trans.c
fs/hfs/trans.c
+1
-1
未找到文件。
fs/hfs/catalog.c
浏览文件 @
71e93963
...
...
@@ -20,7 +20,7 @@
*
* Given the ID of the parent and the name build a search key.
*/
void
hfs_cat_build_key
(
struct
super_block
*
sb
,
btree_key
*
key
,
u32
parent
,
struct
qstr
*
name
)
void
hfs_cat_build_key
(
struct
super_block
*
sb
,
btree_key
*
key
,
u32
parent
,
const
struct
qstr
*
name
)
{
key
->
cat
.
reserved
=
0
;
key
->
cat
.
ParID
=
cpu_to_be32
(
parent
);
...
...
@@ -64,7 +64,7 @@ static int hfs_cat_build_record(hfs_cat_rec *rec, u32 cnid, struct inode *inode)
static
int
hfs_cat_build_thread
(
struct
super_block
*
sb
,
hfs_cat_rec
*
rec
,
int
type
,
u32
parentid
,
struct
qstr
*
name
)
u32
parentid
,
const
struct
qstr
*
name
)
{
rec
->
type
=
type
;
memset
(
rec
->
thread
.
reserved
,
0
,
sizeof
(
rec
->
thread
.
reserved
));
...
...
@@ -79,7 +79,7 @@ static int hfs_cat_build_thread(struct super_block *sb,
* Add a new file or directory to the catalog B-tree and
* return a (struct hfs_cat_entry) for it in '*result'.
*/
int
hfs_cat_create
(
u32
cnid
,
struct
inode
*
dir
,
struct
qstr
*
str
,
struct
inode
*
inode
)
int
hfs_cat_create
(
u32
cnid
,
struct
inode
*
dir
,
const
struct
qstr
*
str
,
struct
inode
*
inode
)
{
struct
hfs_find_data
fd
;
struct
super_block
*
sb
;
...
...
@@ -210,7 +210,7 @@ int hfs_cat_find_brec(struct super_block *sb, u32 cnid,
* Delete the indicated file or directory.
* The associated thread is also removed unless ('with_thread'==0).
*/
int
hfs_cat_delete
(
u32
cnid
,
struct
inode
*
dir
,
struct
qstr
*
str
)
int
hfs_cat_delete
(
u32
cnid
,
struct
inode
*
dir
,
const
struct
qstr
*
str
)
{
struct
super_block
*
sb
;
struct
hfs_find_data
fd
;
...
...
@@ -277,8 +277,8 @@ int hfs_cat_delete(u32 cnid, struct inode *dir, struct qstr *str)
* If the destination exists it is removed and a
* (struct hfs_cat_entry) for it is returned in '*result'.
*/
int
hfs_cat_move
(
u32
cnid
,
struct
inode
*
src_dir
,
struct
qstr
*
src_name
,
struct
inode
*
dst_dir
,
struct
qstr
*
dst_name
)
int
hfs_cat_move
(
u32
cnid
,
struct
inode
*
src_dir
,
const
struct
qstr
*
src_name
,
struct
inode
*
dst_dir
,
const
struct
qstr
*
dst_name
)
{
struct
super_block
*
sb
;
struct
hfs_find_data
src_fd
,
dst_fd
;
...
...
This diff is collapsed.
Click to expand it.
fs/hfs/hfs_fs.h
浏览文件 @
71e93963
...
...
@@ -178,11 +178,11 @@ extern int hfs_clear_vbm_bits(struct super_block *, u16, u16);
extern
int
hfs_cat_keycmp
(
const
btree_key
*
,
const
btree_key
*
);
struct
hfs_find_data
;
extern
int
hfs_cat_find_brec
(
struct
super_block
*
,
u32
,
struct
hfs_find_data
*
);
extern
int
hfs_cat_create
(
u32
,
struct
inode
*
,
struct
qstr
*
,
struct
inode
*
);
extern
int
hfs_cat_delete
(
u32
,
struct
inode
*
,
struct
qstr
*
);
extern
int
hfs_cat_move
(
u32
,
struct
inode
*
,
struct
qstr
*
,
struct
inode
*
,
struct
qstr
*
);
extern
void
hfs_cat_build_key
(
struct
super_block
*
,
btree_key
*
,
u32
,
struct
qstr
*
);
extern
int
hfs_cat_create
(
u32
,
struct
inode
*
,
const
struct
qstr
*
,
struct
inode
*
);
extern
int
hfs_cat_delete
(
u32
,
struct
inode
*
,
const
struct
qstr
*
);
extern
int
hfs_cat_move
(
u32
,
struct
inode
*
,
const
struct
qstr
*
,
struct
inode
*
,
const
struct
qstr
*
);
extern
void
hfs_cat_build_key
(
struct
super_block
*
,
btree_key
*
,
u32
,
const
struct
qstr
*
);
/* dir.c */
extern
const
struct
file_operations
hfs_dir_operations
;
...
...
@@ -201,7 +201,7 @@ extern int hfs_get_block(struct inode *, sector_t, struct buffer_head *, int);
extern
const
struct
address_space_operations
hfs_aops
;
extern
const
struct
address_space_operations
hfs_btree_aops
;
extern
struct
inode
*
hfs_new_inode
(
struct
inode
*
,
struct
qstr
*
,
umode_t
);
extern
struct
inode
*
hfs_new_inode
(
struct
inode
*
,
const
struct
qstr
*
,
umode_t
);
extern
void
hfs_inode_write_fork
(
struct
inode
*
,
struct
hfs_extent
*
,
__be32
*
,
__be32
*
);
extern
int
hfs_write_inode
(
struct
inode
*
,
struct
writeback_control
*
);
extern
int
hfs_inode_setattr
(
struct
dentry
*
,
struct
iattr
*
);
...
...
@@ -237,7 +237,7 @@ extern int hfs_compare_dentry(const struct dentry *parent, const struct dentry *
unsigned
int
len
,
const
char
*
str
,
const
struct
qstr
*
name
);
/* trans.c */
extern
void
hfs_asc2mac
(
struct
super_block
*
,
struct
hfs_name
*
,
struct
qstr
*
);
extern
void
hfs_asc2mac
(
struct
super_block
*
,
struct
hfs_name
*
,
const
struct
qstr
*
);
extern
int
hfs_mac2asc
(
struct
super_block
*
,
char
*
,
const
struct
hfs_name
*
);
/* super.c */
...
...
This diff is collapsed.
Click to expand it.
fs/hfs/inode.c
浏览文件 @
71e93963
...
...
@@ -177,7 +177,7 @@ const struct address_space_operations hfs_aops = {
/*
* hfs_new_inode
*/
struct
inode
*
hfs_new_inode
(
struct
inode
*
dir
,
struct
qstr
*
name
,
umode_t
mode
)
struct
inode
*
hfs_new_inode
(
struct
inode
*
dir
,
const
struct
qstr
*
name
,
umode_t
mode
)
{
struct
super_block
*
sb
=
dir
->
i_sb
;
struct
inode
*
inode
=
new_inode
(
sb
);
...
...
This diff is collapsed.
Click to expand it.
fs/hfs/trans.c
浏览文件 @
71e93963
...
...
@@ -94,7 +94,7 @@ int hfs_mac2asc(struct super_block *sb, char *out, const struct hfs_name *in)
* This routine is a inverse to hfs_mac2triv().
* A ':' is replaced by a '/'.
*/
void
hfs_asc2mac
(
struct
super_block
*
sb
,
struct
hfs_name
*
out
,
struct
qstr
*
in
)
void
hfs_asc2mac
(
struct
super_block
*
sb
,
struct
hfs_name
*
out
,
const
struct
qstr
*
in
)
{
struct
nls_table
*
nls_disk
=
HFS_SB
(
sb
)
->
nls_disk
;
struct
nls_table
*
nls_io
=
HFS_SB
(
sb
)
->
nls_io
;
...
...
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部