Add a new stop cp reason STOP_CP_REASON_NO_SEGMENT for keeping consistent with kernel codes.
Signed-off-by: Zhiguo Niu <zhiguo....@unisoc.com> --- fsck/mount.c | 1 + include/f2fs_fs.h | 1 + 2 files changed, 2 insertions(+) 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, }; -- 1.9.1 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel