Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
391e8bbd
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
163
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
391e8bbd
编写于
15年前
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sanitize const/signedness for udf
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
072f98b4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
19 addition
and
19 deletion
+19
-19
fs/udf/balloc.c
fs/udf/balloc.c
+1
-1
fs/udf/dir.c
fs/udf/dir.c
+2
-2
fs/udf/inode.c
fs/udf/inode.c
+1
-1
fs/udf/namei.c
fs/udf/namei.c
+10
-10
fs/udf/symlink.c
fs/udf/symlink.c
+5
-5
未找到文件。
fs/udf/balloc.c
浏览文件 @
391e8bbd
...
...
@@ -547,7 +547,7 @@ static void udf_table_free_blocks(struct super_block *sb,
}
if
(
epos
.
offset
+
(
2
*
adsize
)
>
sb
->
s_blocksize
)
{
char
*
sptr
,
*
dptr
;
unsigned
char
*
sptr
,
*
dptr
;
int
loffset
;
brelse
(
oepos
.
bh
);
...
...
This diff is collapsed.
Click to expand it.
fs/udf/dir.c
浏览文件 @
391e8bbd
...
...
@@ -45,8 +45,8 @@ static int do_udf_readdir(struct inode *dir, struct file *filp,
int
block
,
iblock
;
loff_t
nf_pos
=
(
filp
->
f_pos
-
1
)
<<
2
;
int
flen
;
char
*
fname
=
NULL
;
char
*
nameptr
;
unsigned
char
*
fname
=
NULL
;
unsigned
char
*
nameptr
;
uint16_t
liu
;
uint8_t
lfi
;
loff_t
size
=
udf_ext0_offset
(
dir
)
+
dir
->
i_size
;
...
...
This diff is collapsed.
Click to expand it.
fs/udf/inode.c
浏览文件 @
391e8bbd
...
...
@@ -1672,7 +1672,7 @@ int8_t udf_add_aext(struct inode *inode, struct extent_position *epos,
return
-
1
;
if
(
epos
->
offset
+
(
2
*
adsize
)
>
inode
->
i_sb
->
s_blocksize
)
{
char
*
sptr
,
*
dptr
;
unsigned
char
*
sptr
,
*
dptr
;
struct
buffer_head
*
nbh
;
int
err
,
loffset
;
struct
kernel_lb_addr
obloc
=
epos
->
block
;
...
...
This diff is collapsed.
Click to expand it.
fs/udf/namei.c
浏览文件 @
391e8bbd
...
...
@@ -34,8 +34,8 @@
#include <linux/crc-itu-t.h>
#include <linux/exportfs.h>
static
inline
int
udf_match
(
int
len1
,
const
char
*
name1
,
int
len2
,
const
char
*
name2
)
static
inline
int
udf_match
(
int
len1
,
const
unsigned
char
*
name1
,
int
len2
,
const
unsigned
char
*
name2
)
{
if
(
len1
!=
len2
)
return
0
;
...
...
@@ -142,15 +142,15 @@ int udf_write_fi(struct inode *inode, struct fileIdentDesc *cfi,
}
static
struct
fileIdentDesc
*
udf_find_entry
(
struct
inode
*
dir
,
struct
qstr
*
child
,
const
struct
qstr
*
child
,
struct
udf_fileident_bh
*
fibh
,
struct
fileIdentDesc
*
cfi
)
{
struct
fileIdentDesc
*
fi
=
NULL
;
loff_t
f_pos
;
int
block
,
flen
;
char
*
fname
=
NULL
;
char
*
nameptr
;
unsigned
char
*
fname
=
NULL
;
unsigned
char
*
nameptr
;
uint8_t
lfi
;
uint16_t
liu
;
loff_t
size
;
...
...
@@ -308,7 +308,7 @@ static struct fileIdentDesc *udf_add_entry(struct inode *dir,
{
struct
super_block
*
sb
=
dir
->
i_sb
;
struct
fileIdentDesc
*
fi
=
NULL
;
char
*
name
=
NULL
;
unsigned
char
*
name
=
NULL
;
int
namelen
;
loff_t
f_pos
;
loff_t
size
=
udf_ext0_offset
(
dir
)
+
dir
->
i_size
;
...
...
@@ -885,16 +885,16 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry,
{
struct
inode
*
inode
;
struct
pathComponent
*
pc
;
char
*
compstart
;
c
onst
c
har
*
compstart
;
struct
udf_fileident_bh
fibh
;
struct
extent_position
epos
=
{};
int
eoffset
,
elen
=
0
;
struct
fileIdentDesc
*
fi
;
struct
fileIdentDesc
cfi
;
char
*
ea
;
uint8_t
*
ea
;
int
err
;
int
block
;
char
*
name
=
NULL
;
unsigned
char
*
name
=
NULL
;
int
namelen
;
struct
buffer_head
*
bh
;
struct
udf_inode_info
*
iinfo
;
...
...
@@ -970,7 +970,7 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry,
pc
=
(
struct
pathComponent
*
)(
ea
+
elen
);
compstart
=
(
char
*
)
symname
;
compstart
=
symname
;
do
{
symname
++
;
...
...
This diff is collapsed.
Click to expand it.
fs/udf/symlink.c
浏览文件 @
391e8bbd
...
...
@@ -32,12 +32,12 @@
#include <linux/buffer_head.h>
#include "udf_i.h"
static
void
udf_pc_to_char
(
struct
super_block
*
sb
,
char
*
from
,
int
fromlen
,
char
*
to
)
static
void
udf_pc_to_char
(
struct
super_block
*
sb
,
unsigned
char
*
from
,
int
fromlen
,
unsigned
char
*
to
)
{
struct
pathComponent
*
pc
;
int
elen
=
0
;
char
*
p
=
to
;
unsigned
char
*
p
=
to
;
while
(
elen
<
fromlen
)
{
pc
=
(
struct
pathComponent
*
)(
from
+
elen
);
...
...
@@ -75,9 +75,9 @@ static int udf_symlink_filler(struct file *file, struct page *page)
{
struct
inode
*
inode
=
page
->
mapping
->
host
;
struct
buffer_head
*
bh
=
NULL
;
char
*
symlink
;
unsigned
char
*
symlink
;
int
err
=
-
EIO
;
char
*
p
=
kmap
(
page
);
unsigned
char
*
p
=
kmap
(
page
);
struct
udf_inode_info
*
iinfo
;
lock_kernel
();
...
...
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部