From 30b0dfa1a18e419358956f59f7686fe53cb0181a Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Thu, 16 Oct 2014 09:40:16 -0700 Subject: [PATCH] fsck.f2fs: fix link count correctly We should do *goto check* if there is something to fix. Signed-off-by: Jaegeuk Kim --- fsck/fsck.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fsck/fsck.c b/fsck/fsck.c index 9997d0c..63fe998 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -375,6 +375,7 @@ void fsck_chk_inode_blk(struct f2fs_sb_info *sbi, u32 nid, "i_links= 0x%x -> 0x%x", nid, i_links, i_links + 1); } + goto check; } /* No need to go deep into the node */ return; -- 2.7.4