From patchwork Tue Mar 21 00:00:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaegeuk Kim X-Patchwork-Id: 13182052 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 CB003C6FD1C for ; Tue, 21 Mar 2023 00:00:24 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1pePQL-00031N-St; Tue, 21 Mar 2023 00:00:22 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pePQI-00031G-AI for linux-f2fs-devel@lists.sourceforge.net; Tue, 21 Mar 2023 00:00:18 +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: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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/Unz6Ep/J+KkWQe6KYaGo6V146kFAdWL/OZVFaGtTt8=; b=d3XxZxok/ysJs23XzF05w6ocgT JvlzzPB13RcHsBk2a1JSI92GpY2foYASqwI2Xze4mzOUnbQx+FGIskudXfWdhXViR2jpzt+6KTqrM kabGJPpdjBC7uSlH6adpuKCKyY/2Cn34sZ0pnDCwffi2FBqa8t1h2lHfhoEmContEteo=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version: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:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=/Unz6Ep/J+KkWQe6KYaGo6V146kFAdWL/OZVFaGtTt8=; b=a M2iGqR5y8NUf/13GmxERikraCJOW+NBqI0Ra5YMdKiwPL5zFbZK169NVZM4x2qmFtgx2bTiQ2JL3g I/8SoX2Ny7+IPruA/UNZMNGFTzgkh5rLFuAPZTTEW5VwKIgTB0le5UYqzaqY+vffzOoT9k16Hg/P0 tGTMU3LaXq6/1AfM=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1pePQD-00EhVx-G7 for linux-f2fs-devel@lists.sourceforge.net; Tue, 21 Mar 2023 00:00:18 +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 EEE9B61839 for ; Tue, 21 Mar 2023 00:00:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E00AC433EF; Tue, 21 Mar 2023 00:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679356803; bh=MZ3GC9ZAZ5iqR7vJLDt1Ui1LAXId1OikJ19AfHXKvvc=; h=From:To:Cc:Subject:Date:From; b=fXjdgUPrjL85FxzhHUvslXXWvfaPqVNc8CoAN+3IJS2nlYs0OM4LcOrpmmAfhM/Sn N5mLEr5hbeD3UWZsKHzZ9qbQe6bndVT8WYnWqDanTefNLZ9CubHemuVrwanQvpJR96 2A9zerEqV928WJww4Z+nuF+6cMFIWWUDOxbcUGhH5BfJX0UoLEOPlojcrZpcIGlHvs Vz8U5+WltjST3dOFUvwO5bNai98fPnehEdkNx63rseviSzhHFu3L3+/i4N0ZRKXJV3 1d6rrhsUP/dKqhkcOISiGfvchJxIH0HgH+swRAjEM1BA6N/IX5Ub6jide4NEcR3U3A mS6/pNsUGi8jA== From: Jaegeuk Kim To: linux-f2fs-devel@lists.sourceforge.net Date: Mon, 20 Mar 2023 17:00:01 -0700 Message-Id: <20230321000001.1793472-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog MIME-Version: 1.0 X-Headers-End: 1pePQD-00EhVx-G7 Subject: [f2fs-dev] [PATCH] fsck.f2fs: don't call report_zone on normal partition 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 Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Report_zone is not supported on normal partition. Signed-off-by: Jaegeuk Kim --- fsck/fsck.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fsck/fsck.c b/fsck/fsck.c index 1b6f2c20b2b3..324c3d5d9304 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -2462,6 +2462,9 @@ static int check_curseg_write_pointer(struct f2fs_sb_info *sbi, int type) if (i >= MAX_DEVICES) return -EINVAL; + if (c.devices[i].zoned_model != F2FS_ZONED_HM) + return 0; + /* get write pointer position of the zone the curseg points to */ cs_sector = (cs_block - c.devices[i].start_blkaddr) << log_sectors_per_block;