From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaegeuk Kim Subject: [PATCH] fsck.f2fs: fix to check all the types of current offsets Date: Wed, 7 Feb 2018 17:40:22 -0800 Message-ID: <20180208014022.46972-1-jaegeuk@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1ejbCT-000089-6P for linux-f2fs-devel@lists.sourceforge.net; Thu, 08 Feb 2018 01:40:33 +0000 Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-4.v28.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) id 1ejbCR-0007Dp-1n for linux-f2fs-devel@lists.sourceforge.net; Thu, 08 Feb 2018 01:40:33 +0000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim 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 --- 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