fsck.f2fs: fix to check all the types of current offsets
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 Feb 2018 01:36:46 +0000 (17:36 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 7 May 2018 21:49:38 +0000 (14:49 -0700)
We can change the next block offsets sometimes, so we have to check it's
free or not all the time. This fixes that SSR type makes a hole for it.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c

index a984666..7e3afb5 100644 (file)
@@ -2021,7 +2021,7 @@ int check_curseg_offset(struct f2fs_sb_info *sbi)
                        return -EINVAL;
                }
                if (curseg->alloc_type == SSR)
-                       return 0;
+                       continue;
 
                nblocks = sbi->blocks_per_seg;
                for (j = curseg->next_blkoff + 1; j < nblocks; j++) {