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 <[email protected]> --- fsck/fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index 29823a1..0a37f7a 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -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++) { -- 2.15.0.531.g2ccb3012c9-goog ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
