Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
70bacbdb
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看板
提交
70bacbdb
编写于
3月 02, 2006
作者:
M
Mark Fasheh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ocfs2: don't use MLF* in cluster/ files
Signed-off-by:
N
Mark Fasheh
<
mark.fasheh@oracle.com
>
上级
c03872f5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
18 deletion
+20
-18
fs/ocfs2/cluster/heartbeat.c
fs/ocfs2/cluster/heartbeat.c
+20
-18
未找到文件。
fs/ocfs2/cluster/heartbeat.c
浏览文件 @
70bacbdb
...
...
@@ -449,11 +449,11 @@ static u32 o2hb_compute_block_crc_le(struct o2hb_region *reg,
static
void
o2hb_dump_slot
(
struct
o2hb_disk_heartbeat_block
*
hb_block
)
{
mlog
(
ML_ERROR
,
"Dump slot information: seq = 0x%
"
MLFx64
"
, node = %u, "
"cksum = 0x%x, generation 0x%
"
MLFx64
"
\n
"
,
le64_to_cpu
(
hb_block
->
hb_seq
),
hb_block
->
hb_node
,
le32_to_cpu
(
hb_block
->
hb_cksum
),
le64_to_cpu
(
hb_block
->
hb_generation
));
mlog
(
ML_ERROR
,
"Dump slot information: seq = 0x%
llx
, node = %u, "
"cksum = 0x%x, generation 0x%
llx
\n
"
,
(
long
long
)
le64_to_cpu
(
hb_block
->
hb_seq
)
,
hb_block
->
hb_node
,
le32_to_cpu
(
hb_block
->
hb_cksum
),
(
long
long
)
le64_to_cpu
(
hb_block
->
hb_generation
));
}
static
int
o2hb_verify_crc
(
struct
o2hb_region
*
reg
,
...
...
@@ -516,8 +516,9 @@ static inline void o2hb_prepare_block(struct o2hb_region *reg,
hb_block
->
hb_cksum
=
cpu_to_le32
(
o2hb_compute_block_crc_le
(
reg
,
hb_block
));
mlog
(
ML_HB_BIO
,
"our node generation = 0x%"
MLFx64
", cksum = 0x%x
\n
"
,
cpu_to_le64
(
generation
),
le32_to_cpu
(
hb_block
->
hb_cksum
));
mlog
(
ML_HB_BIO
,
"our node generation = 0x%llx, cksum = 0x%x
\n
"
,
(
long
long
)
cpu_to_le64
(
generation
),
le32_to_cpu
(
hb_block
->
hb_cksum
));
}
static
void
o2hb_fire_callbacks
(
struct
o2hb_callback
*
hbcall
,
...
...
@@ -686,19 +687,20 @@ static int o2hb_check_slot(struct o2hb_region *reg,
if
(
slot
->
ds_last_generation
!=
le64_to_cpu
(
hb_block
->
hb_generation
))
{
gen_changed
=
1
;
slot
->
ds_equal_samples
=
0
;
mlog
(
ML_HEARTBEAT
,
"Node %d changed generation (0x%
"
MLFx64
"
"
"to 0x%
"
MLFx64
"
)
\n
"
,
slot
->
ds_node_num
,
slot
->
ds_last_generation
,
le64_to_cpu
(
hb_block
->
hb_generation
));
mlog
(
ML_HEARTBEAT
,
"Node %d changed generation (0x%
llx
"
"to 0x%
llx
)
\n
"
,
slot
->
ds_node_num
,
(
long
long
)
slot
->
ds_last_generation
,
(
long
long
)
le64_to_cpu
(
hb_block
->
hb_generation
));
}
slot
->
ds_last_generation
=
le64_to_cpu
(
hb_block
->
hb_generation
);
mlog
(
ML_HEARTBEAT
,
"Slot %d gen 0x%"
MLFx64
" cksum 0x%x "
"seq %"
MLFu64
" last %"
MLFu64
" changed %u equal %u
\n
"
,
slot
->
ds_node_num
,
slot
->
ds_last_generation
,
le32_to_cpu
(
hb_block
->
hb_cksum
),
le64_to_cpu
(
hb_block
->
hb_seq
),
slot
->
ds_last_time
,
slot
->
ds_changed_samples
,
mlog
(
ML_HEARTBEAT
,
"Slot %d gen 0x%llx cksum 0x%x "
"seq %llu last %llu changed %u equal %u
\n
"
,
slot
->
ds_node_num
,
(
long
long
)
slot
->
ds_last_generation
,
le32_to_cpu
(
hb_block
->
hb_cksum
),
(
unsigned
long
long
)
le64_to_cpu
(
hb_block
->
hb_seq
),
(
unsigned
long
long
)
slot
->
ds_last_time
,
slot
->
ds_changed_samples
,
slot
->
ds_equal_samples
);
spin_lock
(
&
o2hb_live_lock
);
...
...
@@ -708,8 +710,8 @@ static int o2hb_check_slot(struct o2hb_region *reg,
* changes at any time during their dead time */
if
(
list_empty
(
&
slot
->
ds_live_item
)
&&
slot
->
ds_changed_samples
>=
O2HB_LIVE_THRESHOLD
)
{
mlog
(
ML_HEARTBEAT
,
"Node %d (id 0x%
"
MLFx64
") joined my "
"region
\n
"
,
slot
->
ds_node_num
,
slot
->
ds_last_generation
);
mlog
(
ML_HEARTBEAT
,
"Node %d (id 0x%
llx) joined my region
\n
"
,
slot
->
ds_node_num
,
(
long
long
)
slot
->
ds_last_generation
);
/* first on the list generates a callback */
if
(
list_empty
(
&
o2hb_live_slots
[
slot
->
ds_node_num
]))
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录