Message ID | 20240220232247.2856-2-jaegeuk@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-73818-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp721861dyc; Tue, 20 Feb 2024 15:23:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU6vS7RhAab4NekXKlkdZcWoBPJIK1cNvV88oDxa/pRHg21bICFwf1RjDk586p3ixixO3jdLiC9RC1ibQ2HYf3BUY+wXw== X-Google-Smtp-Source: AGHT+IGUrNjqfOvoEv+4i67jOXaS721wQjjtAWXWW/EikjM1q2jFVMKT5BrbzS8+0YEWHsjH4ehF X-Received: by 2002:a05:622a:18e:b0:42e:2fc4:2f54 with SMTP id s14-20020a05622a018e00b0042e2fc42f54mr1997649qtw.37.1708471397142; Tue, 20 Feb 2024 15:23:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708471397; cv=pass; d=google.com; s=arc-20160816; b=DEvwrt+C3S5LgA2gQ9ZsrjoL4P7nJgPh+aSEwgtIj4PbiwOqDpYhJF196WwgsABmCr JkokEtggtXWmRvuB7ce++VL/VhnELmSfVqnB2Bf22/vkrdKChBPLh/FgnCgUU8jT/diE EZ1fBPe7JSJgXAEn/COjzYU7ICWhM/G6DzMhlvbZLy7LLwMWp3Oz4FpRgjYZ88a8V5Gj QXFBXIhPTzc6Ip+3RVGTn4EUEUXyUwynh49SmUZ1m1gDSDKSP1E/txjajxQ1K6JJbnS3 wW/u4JEtgTK737woETC9OfUvE84D/RBEPjXB8uqm+U0EOFdcGi4ktclJvcBpToIDiEOo gFHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bw6TXE4X6gm7laWa6Ql8TTJbzqDkDWGSGsqct2muGr8=; fh=rqHW7NazYv3wAmgqDKAbZUXWTmf0VaM5epB9R4zfTUE=; b=mGWDLeThuSziIxrE+GwvcCtBehcjneWcqTSgT2CtplN9Sa/QHI3Li5dD/I8nim/1iR DtCWiKrijiby5RgIa/u0fiy6Cjr1SNpKNeo3Gr5TdSF/OwEtYS2BKsV2Cq1EZfVeCNXJ l+GfnD9YC2/hYD1MOsIAGJaDWui7P/h7DJauYRRbbUFKt8JIVd2NG12CTH1XHGL8ix+F O6pAcZhhpSWShraGvVaS+SxSAgi8/2nl058RFF2JhReplZrDRS8baU53R+A/szu4RPQ4 WFtMUQM0Yk5iL3oOjp0cOw/F2gmxvbbwFexqeq0iv89oZ7VqBWMvJ5f2+gjYbMSqqBaJ ekOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="PddiNl/Y"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73818-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73818-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c19-20020ac85a93000000b0042df364fbd7si9511235qtc.546.2024.02.20.15.23.17 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 15:23:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73818-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="PddiNl/Y"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73818-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73818-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EAB671C21EFE for <ouuuleilei@gmail.com>; Tue, 20 Feb 2024 23:23:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6556C1552FB; Tue, 20 Feb 2024 23:22:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PddiNl/Y" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D653D154459 for <linux-kernel@vger.kernel.org>; Tue, 20 Feb 2024 23:22:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708471370; cv=none; b=jYWsW2cPbdb7F4Ce+W3wJOtTPoPRkYRBbOPJXdl01j6FTPtv7aQ4P7rOZUXZa6iwXLCbwN992MEAj2TPAjB8x7/GshOGRJmQQt3nqIbNAQDYdr8rAObWJ2IB1iTajJgeJrt9mrDBaYOGIyBqSZRGOick0J1ayKux1YI2hDi9o5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708471370; c=relaxed/simple; bh=0ms7KVh+AOl9a1lPdIN8NKPVq4XoHxB9aa6kRs4XqG4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kTV/Ah+exrSVAIbPTVxp5jMFJ0GBLgrKapRFhpx2Q3lx7V2eHEft7JuoB9ORILqVU3ANZhFLrm/xORIBgNbz9gTuj1+/Pv5F6N4iZtCGAe905qiqiB/QMnK2QF0tij+8r5+p4FaAkHpisvGB0ndX0JAmw7/OCjDjL3n4uMJ+yHM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PddiNl/Y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60E07C43394; Tue, 20 Feb 2024 23:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708471370; bh=0ms7KVh+AOl9a1lPdIN8NKPVq4XoHxB9aa6kRs4XqG4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PddiNl/YazsPYFCCCjB+VXg4HrEqsF7rDKgVkEQBMXqz3QOyKp7+JcTchUDPadrVJ sBPHoSAazM9M5b42J1PYokXzdRadn/GAY+o2pM5zQ2U6t28Ia+EXANZiED5Tc4IRGU SqazlN0wiIcQ03GmdNbMLCY8xG6xwH6rsmG07nEbAc6Re2iwFjaEQ3j82NdR3RPucs Bu01oyqgONjUN9qpLJa8iTidhvtlHaKNBKxWX1Qu1UufjtIP5qg6nY62bUeVPqsXUD LsUea/GcH2yUOs9FoSpsU8+qNp/F3SNhPe2i4GZK8F2UneJzyiVdU6wsL7y5cLIM3Y tuavq7QtWfgfQ== From: Jaegeuk Kim <jaegeuk@kernel.org> To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim <jaegeuk@kernel.org> Subject: [PATCH 2/3] f2fs: prevent an f2fs_gc loop during disable_checkpoint Date: Tue, 20 Feb 2024 15:22:46 -0800 Message-ID: <20240220232247.2856-2-jaegeuk@kernel.org> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog In-Reply-To: <20240220232247.2856-1-jaegeuk@kernel.org> References: <20240220232247.2856-1-jaegeuk@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791462103938613235 X-GMAIL-MSGID: 1791462103938613235 |
Series |
[1/3] f2fs: check number of blocks in a current section
|
|
Commit Message
Jaegeuk Kim
Feb. 20, 2024, 11:22 p.m. UTC
Don't get stuck in the f2fs_gc loop while disabling checkpoint. Instead, we have
a time-based management.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
fs/f2fs/super.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index ad80cd38f3a4..9de467a28fd3 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2190,6 +2190,7 @@ static int f2fs_disable_checkpoint(struct f2fs_sb_info *sbi) .init_gc_type = FG_GC, .should_migrate_blocks = false, .err_gc_skipped = true, + .no_bg_gc = true, .nr_free_secs = 1 }; f2fs_down_write(&sbi->gc_lock);