1 Star 0 Fork 17

josephhz/e2fsprogs

forked from src-anolis-os/e2fsprogs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
1002-e2fsck-add-fallthrough-comment-in-fc-replay-switch-c.patch 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
josephhz 提交于 2024-11-13 11:53 . enable metadata_csum by default
From 81704ba980d5d489572e42812d284f52e2e2c615 Mon Sep 17 00:00:00 2001
From: Harshad Shirwadkar <[email protected]>
Date: Tue, 23 Feb 2021 09:41:55 -0800
Subject: [PATCH 2/8] e2fsck: add fallthrough comment in fc replay switch case
During fast commit replay scan phase, in ext4_fc_replay_scan(), we
want to fallthrough in switch case for EXT4_FC_TAG_ADD_RANGE case. Add
a comment for that.
Signed-off-by: Harshad Shirwadkar <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Signed-off-by: Joseph Qi <[email protected]>
---
e2fsck/journal.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/e2fsck/journal.c b/e2fsck/journal.c
index 2708942a..a67ef745 100644
--- a/e2fsck/journal.c
+++ b/e2fsck/journal.c
@@ -325,6 +325,7 @@ static int ext4_fc_replay_scan(journal_t *j, struct buffer_head *bh,
ret = JBD2_FC_REPLAY_STOP;
else
ret = JBD2_FC_REPLAY_CONTINUE;
+ /* fallthrough */
case EXT4_FC_TAG_DEL_RANGE:
case EXT4_FC_TAG_LINK:
case EXT4_FC_TAG_UNLINK:
--
2.39.3
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/josephhz/e2fsprogs.git
[email protected]:josephhz/e2fsprogs.git
josephhz
e2fsprogs
e2fsprogs
a8

搜索帮助