Skip to content

Commit 55ea0c2

Browse files
chaseyuJaegeuk Kim
authored andcommitted
fsck.f2fs: recognize STOP_CP_REASON_CORRUPTED_NID
Let fsck recognize STOP_CP_REASON_CORRUPTED_NID for repair. Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 382f3ac commit 55ea0c2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

fsck/mount.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ static char *stop_reason_str[] = {
730730
[STOP_CP_REASON_FLUSH_FAIL] = "flush_fail",
731731
[STOP_CP_REASON_NO_SEGMENT] = "no_segment",
732732
[STOP_CP_REASON_CORRUPTED_FREE_BITMAP] = "corrupted_free_bitmap",
733+
[STOP_CP_REASON_CORRUPTED_NID] = "corrupted nid",
733734
};
734735

735736
void print_sb_stop_reason(struct f2fs_super_block *sb)

include/f2fs_fs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ enum stop_cp_reason {
741741
STOP_CP_REASON_FLUSH_FAIL,
742742
STOP_CP_REASON_NO_SEGMENT,
743743
STOP_CP_REASON_CORRUPTED_FREE_BITMAP,
744+
STOP_CP_REASON_CORRUPTED_NID,
744745
STOP_CP_REASON_MAX,
745746
};
746747

0 commit comments

Comments
 (0)