Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
2b2d6d01
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
153
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2b2d6d01
编写于
7月 26, 2008
作者:
T
Theodore Ts'o
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ext4: Cleanup whitespace and other miscellaneous style issues
Signed-off-by:
N
"Theodore Ts'o"
<
tytso@mit.edu
>
上级
ec05e868
变更
6
展开全部
显示空白变更内容
内联
并排
Showing
6 changed file
with
277 addition
and
282 deletion
+277
-282
fs/ext4/acl.c
fs/ext4/acl.c
+94
-94
fs/ext4/extents.c
fs/ext4/extents.c
+1
-1
fs/ext4/inode.c
fs/ext4/inode.c
+2
-3
fs/ext4/resize.c
fs/ext4/resize.c
+40
-39
fs/ext4/super.c
fs/ext4/super.c
+139
-144
fs/ext4/xattr.c
fs/ext4/xattr.c
+1
-1
未找到文件。
fs/ext4/acl.c
浏览文件 @
2b2d6d01
...
...
@@ -40,14 +40,15 @@ ext4_acl_from_disk(const void *value, size_t size)
acl
=
posix_acl_alloc
(
count
,
GFP_NOFS
);
if
(
!
acl
)
return
ERR_PTR
(
-
ENOMEM
);
for
(
n
=
0
;
n
<
count
;
n
++
)
{
for
(
n
=
0
;
n
<
count
;
n
++
)
{
ext4_acl_entry
*
entry
=
(
ext4_acl_entry
*
)
value
;
if
((
char
*
)
value
+
sizeof
(
ext4_acl_entry_short
)
>
end
)
goto
fail
;
acl
->
a_entries
[
n
].
e_tag
=
le16_to_cpu
(
entry
->
e_tag
);
acl
->
a_entries
[
n
].
e_perm
=
le16_to_cpu
(
entry
->
e_perm
);
switch
(
acl
->
a_entries
[
n
].
e_tag
)
{
switch
(
acl
->
a_entries
[
n
].
e_tag
)
{
case
ACL_USER_OBJ
:
case
ACL_GROUP_OBJ
:
case
ACL_MASK
:
...
...
@@ -96,15 +97,14 @@ ext4_acl_to_disk(const struct posix_acl *acl, size_t *size)
return
ERR_PTR
(
-
ENOMEM
);
ext_acl
->
a_version
=
cpu_to_le32
(
EXT4_ACL_VERSION
);
e
=
(
char
*
)
ext_acl
+
sizeof
(
ext4_acl_header
);
for
(
n
=
0
;
n
<
acl
->
a_count
;
n
++
)
{
for
(
n
=
0
;
n
<
acl
->
a_count
;
n
++
)
{
ext4_acl_entry
*
entry
=
(
ext4_acl_entry
*
)
e
;
entry
->
e_tag
=
cpu_to_le16
(
acl
->
a_entries
[
n
].
e_tag
);
entry
->
e_perm
=
cpu_to_le16
(
acl
->
a_entries
[
n
].
e_perm
);
switch
(
acl
->
a_entries
[
n
].
e_tag
)
{
switch
(
acl
->
a_entries
[
n
].
e_tag
)
{
case
ACL_USER
:
case
ACL_GROUP
:
entry
->
e_id
=
cpu_to_le32
(
acl
->
a_entries
[
n
].
e_id
);
entry
->
e_id
=
cpu_to_le32
(
acl
->
a_entries
[
n
].
e_id
);
e
+=
sizeof
(
ext4_acl_entry
);
break
;
...
...
@@ -167,7 +167,7 @@ ext4_get_acl(struct inode *inode, int type)
if
(
!
test_opt
(
inode
->
i_sb
,
POSIX_ACL
))
return
NULL
;
switch
(
type
)
{
switch
(
type
)
{
case
ACL_TYPE_ACCESS
:
acl
=
ext4_iget_acl
(
inode
,
&
ei
->
i_acl
);
if
(
acl
!=
EXT4_ACL_NOT_CACHED
)
...
...
@@ -201,7 +201,7 @@ ext4_get_acl(struct inode *inode, int type)
kfree
(
value
);
if
(
!
IS_ERR
(
acl
))
{
switch
(
type
)
{
switch
(
type
)
{
case
ACL_TYPE_ACCESS
:
ext4_iset_acl
(
inode
,
&
ei
->
i_acl
,
acl
);
break
;
...
...
@@ -232,7 +232,7 @@ ext4_set_acl(handle_t *handle, struct inode *inode, int type,
if
(
S_ISLNK
(
inode
->
i_mode
))
return
-
EOPNOTSUPP
;
switch
(
type
)
{
switch
(
type
)
{
case
ACL_TYPE_ACCESS
:
name_index
=
EXT4_XATTR_INDEX_POSIX_ACL_ACCESS
;
if
(
acl
)
{
...
...
@@ -269,7 +269,7 @@ ext4_set_acl(handle_t *handle, struct inode *inode, int type,
kfree
(
value
);
if
(
!
error
)
{
switch
(
type
)
{
switch
(
type
)
{
case
ACL_TYPE_ACCESS
:
ext4_iset_acl
(
inode
,
&
ei
->
i_acl
,
acl
);
break
;
...
...
fs/ext4/extents.c
浏览文件 @
2b2d6d01
fs/ext4/inode.c
浏览文件 @
2b2d6d01
...
...
@@ -1054,10 +1054,9 @@ static void ext4_da_update_reserve_space(struct inode *inode, int used)
/*
* The ext4_get_blocks_wrap() function try to look up the requested blocks,
* and returns if the blocks are already mapped.
*
*
* ext4_ext4 get_block() wrapper function
* It will do a look up first, and returns if the blocks already mapped.
* Otherwise it takes the write lock of the i_data_sem and allocate blocks
* and store the allocated blocks in the result buffer head and mark it
* mapped.
...
...
fs/ext4/resize.c
浏览文件 @
2b2d6d01
...
...
@@ -507,14 +507,14 @@ static int add_new_gdb(handle_t *handle, struct inode *inode,
return
0
;
exit_inode:
/
/ext4_journal_release_buffer(handle, iloc.bh);
/
* ext4_journal_release_buffer(handle, iloc.bh); */
brelse
(
iloc
.
bh
);
exit_dindj:
/
/ext4_journal_release_buffer(handle, dind);
/
* ext4_journal_release_buffer(handle, dind); */
exit_primary:
/
/ext4_journal_release_buffer(handle, *primary);
/
* ext4_journal_release_buffer(handle, *primary); */
exit_sbh:
/
/ext4_journal_release_buffer(handle, *primary);
/
* ext4_journal_release_buffer(handle, *primary); */
exit_dind:
brelse
(
dind
);
exit_bh:
...
...
@@ -946,7 +946,8 @@ int ext4_group_add(struct super_block *sb, struct ext4_new_group_data *input)
return
err
;
}
/* ext4_group_add */
/* Extend the filesystem to the new number of blocks specified. This entry
/*
* Extend the filesystem to the new number of blocks specified. This entry
* point is only used to extend the current filesystem to the end of the last
* existing group. It can be accessed via ioctl, or by "remount,resize=<size>"
* for emergencies (because it has no dependencies on reserved blocks).
...
...
@@ -1024,7 +1025,7 @@ int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es,
o_blocks_count
+
add
,
add
);
/* See if the device is actually as big as what was requested */
bh
=
sb_bread
(
sb
,
o_blocks_count
+
add
-
1
);
bh
=
sb_bread
(
sb
,
o_blocks_count
+
add
-
1
);
if
(
!
bh
)
{
ext4_warning
(
sb
,
__func__
,
"can't read last block, resize aborted"
);
...
...
fs/ext4/super.c
浏览文件 @
2b2d6d01
此差异已折叠。
点击以展开。
fs/ext4/xattr.c
浏览文件 @
2b2d6d01
...
...
@@ -1512,7 +1512,7 @@ static inline void ext4_xattr_hash_entry(struct ext4_xattr_header *header,
char
*
name
=
entry
->
e_name
;
int
n
;
for
(
n
=
0
;
n
<
entry
->
e_name_len
;
n
++
)
{
for
(
n
=
0
;
n
<
entry
->
e_name_len
;
n
++
)
{
hash
=
(
hash
<<
NAME_HASH_SHIFT
)
^
(
hash
>>
(
8
*
sizeof
(
hash
)
-
NAME_HASH_SHIFT
))
^
*
name
++
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录