aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhiguo Niu <zhiguo.niu@unisoc.com>2024-02-20 16:19:28 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2024-02-21 09:38:14 -0800
commitab654fcca26cccafd75b4452111ad96d585abdb9 (patch)
tree36aad12f23cdeea5aaff5f484096d3013f768363
parent06393fda814d71f597b86bea161bcee19bdf8fd1 (diff)
downloadf2fs-tools-ab654fcca26cccafd75b4452111ad96d585abdb9.tar.gz
f2fs-tools: add a new stop cp reason STOP_CP_REASON_NO_SEGMENT
Add a new stop cp reason STOP_CP_REASON_NO_SEGMENT for keeping consistent with kernel codes. Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fsck/mount.c1
-rw-r--r--include/f2fs_fs.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/fsck/mount.c b/fsck/mount.c
index 50afd01..b983920 100644
--- a/fsck/mount.c
+++ b/fsck/mount.c
@@ -679,6 +679,7 @@ static char *stop_reason_str[] = {
[STOP_CP_REASON_CORRUPTED_SUMMARY] = "corrupted_summary",
[STOP_CP_REASON_UPDATE_INODE] = "update_inode",
[STOP_CP_REASON_FLUSH_FAIL] = "flush_fail",
+ [STOP_CP_REASON_NO_SEGMENT] = "no_segment",
};
void print_sb_stop_reason(struct f2fs_super_block *sb)
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
index 5e9dfad..fb2a863 100644
--- a/include/f2fs_fs.h
+++ b/include/f2fs_fs.h
@@ -718,6 +718,7 @@ enum stop_cp_reason {
STOP_CP_REASON_CORRUPTED_SUMMARY,
STOP_CP_REASON_UPDATE_INODE,
STOP_CP_REASON_FLUSH_FAIL,
+ STOP_CP_REASON_NO_SEGMENT,
STOP_CP_REASON_MAX,
};