Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1980409lqb; Mon, 27 May 2024 04:14:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8SkQmqX/jRx8QXwBoCYI23haCedphcfJJZpPPZF7pDdCiD3BQoCxFJ0XXW3o8bRBzDWlp3vpAjAN2k/92tFP1GLSXhdrsj1xgiTUG+Q== X-Google-Smtp-Source: AGHT+IHR+SVu/m1rW4+4U1DGRlMZELuW+BY1Gtqr8MAeJNU9LSiu9ud4BLYwVKL2k8On/m+EPY4O X-Received: by 2002:a17:903:8cc:b0:1f4:64d6:919d with SMTP id d9443c01a7336-1f464d69460mr77212655ad.66.1716808441155; Mon, 27 May 2024 04:14:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716808441; cv=pass; d=google.com; s=arc-20160816; b=khTQoP25O80n/pL45yqd7aZNs/wDwGUHSFPEguWgEyxQVmnYOLsVyltgh7RbWSFnSI /Na/DobIrZnFJGgi3mGi32yK5mbE5C0rTa7sWiNC9YELyzmPzm0tSYOtUZCtB7GBkpAZ ULlovMhrl0CXPeS0I6WsAIgAH6gWbns6J1+Z/5ICSch9hvDptd6MNeo9P3gb3x02Vzz9 PThKubM4hrqQl71Na1HsyeKWlur3jj18bhWVuY8QOP7JNqQtE+Row4ZsKMGLUTtQIkLG nquwUTbfNM5V781kFg6L5FWp4A0lFpYtQfVSs2kacxLtEmsB18iFVlxn/j++I2MiBkRZ QPdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from; bh=IoMPPbZ0OWtsU3WnfalvbA9GsIN7InQOHVIqktNTBVA=; fh=JkrfyujbIDmycozXR7ZDiVuf6xBFur6C1+1NEIITJEI=; b=IqDaUvTBTHDT4LC7dNeDfr3F/KCC5EEuz/pVvEQEVZ/b8en0aIr0qigJEy+2TVwheg 51Lxj45EH5isdnaiyLQdXI6NSqU9N2oIGSeJCOhmk9Qajobbo2d1yi7/ZQpHgxTzmLt7 h4vuDafMEqa0wx5EgNnYs7tpepuB29jgC5oDqnQvDisqK+nhujSFPz0fGhKSxlgBsT31 BfbYHHM0IyS9l6RjaB3AG6agw7bOJZVTqUQqq5X/Ow7reGo6kwHrPCtykCDe4da19tgT T/yf3crJkOeJQG7BHuhuZrdtw9wgqkWfu6FI5LjaRBmG3qn2A0KKXOVlxrpDDkTwY/5N q6lQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-190465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190465-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c9e73f5si26387045ad.568.2024.05.27.04.14.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 04:14:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-190465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190465-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 203B7B21781 for ; Mon, 27 May 2024 11:13:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F1DD13C3F4; Mon, 27 May 2024 11:13:38 +0000 (UTC) Received: from SHSQR01.spreadtrum.com (mx1.unisoc.com [222.66.158.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0319249FF for ; Mon, 27 May 2024 11:13:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=222.66.158.135 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716808417; cv=none; b=B29YnjNSMrMvsNxxUSDDObCl3e2Rd+pBu3SUKlkn9LyKoVlUWIhjqq7wzZWvWQHFPIoMGwpy0zU20CK/FLdxWhSAAng2bze+Bv4icVcgSodfppqwpA+mPevhDjyRzYyp1gyEkB0yyNXLphio5Et4e0AhPQYnKCOxyTdaONAgZjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716808417; c=relaxed/simple; bh=R2KAFyJ0ppoTQL04oRx1FgbUdLHm3uC3Pi/EGX9XWTY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kHKHpM2dETQhYm6R9abiVRbru1LPzl2Wzx8KZHBwoLuzTNB8/U9TZyDc+T5SxBxluvr+xO0u8/Jk5wSwuRamS9wwA8qlxF4lukiSZ8iteINxEdXtRJyJ8n00ZTw0piN1Jxbrusv+KNUr/ZmkeJeDcjqYdOMw+EIj3AY5dPGXoPQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com; spf=pass smtp.mailfrom=unisoc.com; arc=none smtp.client-ip=222.66.158.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unisoc.com Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 44RBCpcs069126; Mon, 27 May 2024 19:12:51 +0800 (+08) (envelope-from Zhiguo.Niu@unisoc.com) Received: from SHDLP.spreadtrum.com (bjmbx02.spreadtrum.com [10.0.64.8]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4VntFJ17bjz2Q6g9V; Mon, 27 May 2024 19:09:08 +0800 (CST) Received: from bj08434pcu.spreadtrum.com (10.0.73.87) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Mon, 27 May 2024 19:12:48 +0800 From: Zhiguo Niu To: , CC: , , , , Subject: [PATCH] f2fs: fix to remove redundant SBI_NEED_FSCK flag set Date: Mon, 27 May 2024 19:12:37 +0800 Message-ID: <1716808357-7161-1-git-send-email-zhiguo.niu@unisoc.com> X-Mailer: git-send-email 1.9.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX02.spreadtrum.com (10.0.64.8) X-MAIL:SHSQR01.spreadtrum.com 44RBCpcs069126 Subsequent f2fs_stop_checkpoint will set cp_err, so this SBI_NEED_FSCK flag set action is invalid. Signed-off-by: Zhiguo Niu --- fs/f2fs/gc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 20e2f98..ef667fe 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -1752,7 +1752,6 @@ static int do_garbage_collect(struct f2fs_sb_info *sbi, if (type != GET_SUM_TYPE((&sum->footer))) { f2fs_err(sbi, "Inconsistent segment (%u) type [%d, %d] in SSA and SIT", segno, type, GET_SUM_TYPE((&sum->footer))); - set_sbi_flag(sbi, SBI_NEED_FSCK); f2fs_stop_checkpoint(sbi, false, STOP_CP_REASON_CORRUPTED_SUMMARY); goto skip; -- 1.9.1