Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
e1bf4cc6
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e1bf4cc6
编写于
4月 13, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ocfs: ->rl_used breakage on big-endian
it's le16, not le32 or le64... Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
3a251f04
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
4 addition
and
4 deletion
+4
-4
fs/ocfs2/refcounttree.c
fs/ocfs2/refcounttree.c
+4
-4
未找到文件。
fs/ocfs2/refcounttree.c
浏览文件 @
e1bf4cc6
...
@@ -1468,7 +1468,7 @@ static int ocfs2_divide_leaf_refcount_block(struct buffer_head *ref_leaf_bh,
...
@@ -1468,7 +1468,7 @@ static int ocfs2_divide_leaf_refcount_block(struct buffer_head *ref_leaf_bh,
trace_ocfs2_divide_leaf_refcount_block
(
trace_ocfs2_divide_leaf_refcount_block
(
(
unsigned
long
long
)
ref_leaf_bh
->
b_blocknr
,
(
unsigned
long
long
)
ref_leaf_bh
->
b_blocknr
,
le32_to_cpu
(
rl
->
rl_count
),
le
32
_to_cpu
(
rl
->
rl_used
));
le32_to_cpu
(
rl
->
rl_count
),
le
16
_to_cpu
(
rl
->
rl_used
));
/*
/*
* XXX: Improvement later.
* XXX: Improvement later.
...
@@ -2411,7 +2411,7 @@ static int ocfs2_calc_refcount_meta_credits(struct super_block *sb,
...
@@ -2411,7 +2411,7 @@ static int ocfs2_calc_refcount_meta_credits(struct super_block *sb,
rb
=
(
struct
ocfs2_refcount_block
*
)
rb
=
(
struct
ocfs2_refcount_block
*
)
prev_bh
->
b_data
;
prev_bh
->
b_data
;
if
(
le
64
_to_cpu
(
rb
->
rf_records
.
rl_used
)
+
if
(
le
16
_to_cpu
(
rb
->
rf_records
.
rl_used
)
+
recs_add
>
recs_add
>
le16_to_cpu
(
rb
->
rf_records
.
rl_count
))
le16_to_cpu
(
rb
->
rf_records
.
rl_count
))
ref_blocks
++
;
ref_blocks
++
;
...
@@ -2476,7 +2476,7 @@ static int ocfs2_calc_refcount_meta_credits(struct super_block *sb,
...
@@ -2476,7 +2476,7 @@ static int ocfs2_calc_refcount_meta_credits(struct super_block *sb,
if
(
prev_bh
)
{
if
(
prev_bh
)
{
rb
=
(
struct
ocfs2_refcount_block
*
)
prev_bh
->
b_data
;
rb
=
(
struct
ocfs2_refcount_block
*
)
prev_bh
->
b_data
;
if
(
le
64
_to_cpu
(
rb
->
rf_records
.
rl_used
)
+
recs_add
>
if
(
le
16
_to_cpu
(
rb
->
rf_records
.
rl_used
)
+
recs_add
>
le16_to_cpu
(
rb
->
rf_records
.
rl_count
))
le16_to_cpu
(
rb
->
rf_records
.
rl_count
))
ref_blocks
++
;
ref_blocks
++
;
...
@@ -3629,7 +3629,7 @@ int ocfs2_refcounted_xattr_delete_need(struct inode *inode,
...
@@ -3629,7 +3629,7 @@ int ocfs2_refcounted_xattr_delete_need(struct inode *inode,
* one will split a refcount rec, so totally we need
* one will split a refcount rec, so totally we need
* clusters * 2 new refcount rec.
* clusters * 2 new refcount rec.
*/
*/
if
(
le
64
_to_cpu
(
rb
->
rf_records
.
rl_used
)
+
clusters
*
2
>
if
(
le
16
_to_cpu
(
rb
->
rf_records
.
rl_used
)
+
clusters
*
2
>
le16_to_cpu
(
rb
->
rf_records
.
rl_count
))
le16_to_cpu
(
rb
->
rf_records
.
rl_count
))
ref_blocks
++
;
ref_blocks
++
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录