Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5A458C433FE for ; Mon, 10 Oct 2022 22:16:19 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1oi14M-0006Zc-SY; Mon, 10 Oct 2022 22:16:18 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oi147-0006ZG-CV for linux-f2fs-devel@lists.sourceforge.net; Mon, 10 Oct 2022 22:16:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TSnfmV5MJSfmBT33PUGaa9/Vml2+SENXFc4nbxU0++4=; b=TK69/S/6UO61CEYzg3O8R06GKO 4EEYI4DKy5Sc7BXNG38uP9xHDyb7n8mxhxtIPQaOBhDVeLvMytHKdH/bB22WyJBVYR71iNtEWf458 F12Cux7pDjXOx2gmiJ3emXskEZr+taM+I3ccDp4/TUNW7zcy1P42N5icMEiwT79Q90SE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TSnfmV5MJSfmBT33PUGaa9/Vml2+SENXFc4nbxU0++4=; b=F2xlMwwYw6yncyR+Q/LV2HtKGr kckgQi21DtdKI+JQ38IW9CRD1wVlvOtNMXuEf5OLyKTn3Enx+E6V1Yv00jaqEPIg/wraxRsHEUFVF Df9145UOvz704kpm4E5StFTDHWywVgwJktwCFPrfS6zIFrbeiYRWFiD2Y99EOWmKaY5k=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1oi145-0008Av-VH for linux-f2fs-devel@lists.sourceforge.net; Mon, 10 Oct 2022 22:16:03 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8E3276103E for ; Mon, 10 Oct 2022 22:15:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF066C433D6; Mon, 10 Oct 2022 22:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665440151; bh=wZ/EOWz6nhcKq0ueJZs/TIumez1AxffY2Ws7JHLZD+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Iq1Tvt0gvQCIFVGz5MOACY/MIYxvdJxjOTZyGDw1vEldNc2y/XhqR8DXCow2TSzUy 2dwUoIiP9m9JNy0ISKAONTS+9mXQTYOsqRdU9sn1McP3GrU0Qq97kgv9I3d6TKGk5E LgRuYehXIkGwqQ7BjY9eFeQ5ligoAl08R2FZD1Zz9bapb8ZBD+WtlQVrz1CvFbXvlg aMzdnXPP43UdE0oSC4hslGkNFJkO154Odd/QLHAzwb1O3kKk6quXZpESVxQaoMtRHI Elu5Pk8bGFMgrmp5dboc2URlI1ez465ldmL7sUNZJrAnhK6+lAOecwpHTmwG/FSXA7 K95OCptqEYPug== From: Jaegeuk Kim To: linux-f2fs-devel@lists.sourceforge.net Date: Mon, 10 Oct 2022 15:15:47 -0700 Message-Id: <20221010221548.2728860-2-jaegeuk@kernel.org> X-Mailer: git-send-email 2.38.0.rc1.362.ged0d419d3c-goog In-Reply-To: <20221010221548.2728860-1-jaegeuk@kernel.org> References: <20221010221548.2728860-1-jaegeuk@kernel.org> MIME-Version: 1.0 X-Headers-End: 1oi145-0008Av-VH Subject: [f2fs-dev] [PATCH 2/3] fsck.f2fs: fix missing to assign c.zoned_model X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jaegeuk Kim Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net We need to set the c.zoned_model appropriately for further usages. Signed-off-by: Jaegeuk Kim --- fsck/mount.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fsck/mount.c b/fsck/mount.c index 0597220b3bc0..cd8a07538150 100644 --- a/fsck/mount.c +++ b/fsck/mount.c @@ -1095,6 +1095,14 @@ int init_sb_info(struct f2fs_sb_info *sbi) if (i == 0) c.devices[i].end_blkaddr += get_sb(segment0_blkaddr); + if (c.zoned_model == F2FS_ZONED_NONE) { + if (c.devices[i].zoned_model == F2FS_ZONED_HM) + c.zoned_model = F2FS_ZONED_HM; + else if (c.devices[i].zoned_model == F2FS_ZONED_HA && + c.zoned_model != F2FS_ZONED_HM) + c.zoned_model = F2FS_ZONED_HA; + } + c.ndevs = i + 1; MSG(0, "Info: Device[%d] : %s blkaddr = %"PRIx64"--%"PRIx64"\n", i, c.devices[i].path, -- 2.38.0.rc1.362.ged0d419d3c-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel