Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp91911rbb; Fri, 23 Feb 2024 12:56:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVw5tR6dayuLVaF+qyrB8g7mNcPmEB/7lNocXGCVx4Jniq5IX0iyhKif3voRdLcwab5NTEB437Yw2otrSAsZns8QPtclcfZ3nIgsTPSzw== X-Google-Smtp-Source: AGHT+IGnkSGjOU4jYL5JjatG8oAEKYz/wNPBfV1AHpbl9AVyf+qDeJHEfEF7wsEPXrTf95NMaNLA X-Received: by 2002:a17:90b:895:b0:299:d18:3f8c with SMTP id bj21-20020a17090b089500b002990d183f8cmr951229pjb.22.1708721777120; Fri, 23 Feb 2024 12:56:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708721777; cv=pass; d=google.com; s=arc-20160816; b=kXsRc19/5RlFDxHwzSP6KGq72jtCq6nK6B2BB2XuK93SMLMkotFgvVMyuMDhG7Tv/8 +4oVaE04Vw/AvAWRU7EdF2haBPvFm9/Zu/xFUT2GTQFskgOddQChmBtnN5MhUKSHVuCx VCYfmjrU7owTGYS6iLTCSV2MgT6e0ozjRaw9wk8B4wJaHXA2IHedZgB+PFJOeU14dLS0 MnHerDobQkKZDSKFq5XqzDB1wbwmpAgnUTaXp9uhEeFvEQEh2yjJwdJa03wmYds0jrIB 3b+W4XatXN3i2icQqFpDBbBccZ4cKrLMTRRGMom2YvwzFLSVk2/66yuWaaCZFDbvPajA xn0A== 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=LY4nb6aO4XFI9t4oJbOKO3rOm7VYOQsfpcV4tt+nqqk=; fh=rqHW7NazYv3wAmgqDKAbZUXWTmf0VaM5epB9R4zfTUE=; b=mNyElNzs9qsIuAjUc/FnL1PwjQ0XHszroLfYJzapKJeilPbFvCHtgNrriFS4zIwgqP XW0n4lvSQcPjAEVlV5WRmF9fIXOLrgZaYLKYh2n8mwhh7KeoVzOgTwK6Y8mTcDknbHr9 /YfGDov8QWTpXbOYQYi9iVMAv0RHjx8nHBWOn0VjhMjazL2Pw6F0z2VV0v7W+NEK1Tz5 v65O0F5X8SRNNnZv2yJPGj6Hku7UK1nDe26MMKhcjFOsRK1QFJMUHDmldhZBnvmcMumC GoKNbYp2yzMyP3DkPDdLdoPc+cYTjFCh9iJY4cCwVNB6nWgtB+32FhW5sQ1T9q7h9FYO 3ccw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SB3mQtoL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79149-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h5-20020a17090ac38500b0029a0c77105asi1716339pjt.123.2024.02.23.12.56.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 12:56:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79149-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SB3mQtoL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79149-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79149-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C34C0286188 for ; Fri, 23 Feb 2024 20:56:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8DB214AD1B; Fri, 23 Feb 2024 20:55:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SB3mQtoL" 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 040E91493A5 for ; Fri, 23 Feb 2024 20:55:39 +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=1708721740; cv=none; b=aQFyQrUfWanjbrWBWexrfaL8swIWBuok9+pxqvbXxp2AAIUe6unGi2IguTHOMxW6zuT7IxSX4HJ8GmyG4d2zEVZ7YOz9QCATuxJxJ2GXUtp0HTn3URXcWqFflmhxUwmXTDsPmlNg4eW7BNkmrxbER8eTf29o1/QGlJp4hCNZFac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708721740; c=relaxed/simple; bh=jcqHB3mOguQlmJS0WZkHNVvEJ+LlBmJIQaxT0/mGi48=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ec05xRK3rHK0TZndzZhr4ZhB2Wnr2EPXs8i4sPiIzPjO7fkJcI2A2+oiVQ3hXjssX9YkVM7l5eBPe93yUDih9XfYEBX0O+B3jPaUQ8EtdNfbzqw81999R5BSEMj6nDuVc4/JQlypaqQblt8H5jvfKtlQrHTa55Ybpu5cCTwq15w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SB3mQtoL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D6DAC433F1; Fri, 23 Feb 2024 20:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708721739; bh=jcqHB3mOguQlmJS0WZkHNVvEJ+LlBmJIQaxT0/mGi48=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SB3mQtoLjZc3slFBxMQrc1O4HtbEMqzWJ/jBNTuPg46FWdAFrTsuEr3EkozkldcV0 qAaO6BTlVNGrYTROIXCN2Amj4mabG7qG2YHN1PAAzYoipn5o5eQUStaR1qZA7rAGeQ jOBs1vmnQXSZ11t341fROSPlKCIb0rk8Xnpu02UC8vzTHnNXzye9LrSr5wuSrq/dVE m3D7HdmqSzsJiRwuLbNCeGxKvCAB6R4c1m878ohP4rQso5/gjLA8hX/Gc84Jdm639T uaZ/L0JUYTkQvgMfOw4hhZ9ZyTy/QHhGl2/oTZ/FCRK/J/cqy/0cBhrUq3Dm8cdQLn 0Kdk/h96tmGbQ== From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [PATCH 4/5] f2fs: prevent an f2fs_gc loop during disable_checkpoint Date: Fri, 23 Feb 2024 12:55:34 -0800 Message-ID: <20240223205535.307307-4-jaegeuk@kernel.org> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog In-Reply-To: <20240223205535.307307-1-jaegeuk@kernel.org> References: <20240223205535.307307-1-jaegeuk@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Don't get stuck in the f2fs_gc loop while disabling checkpoint. Instead, we have a time-based management. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index fc7f1a9fbbda..7d9b92978709 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2191,6 +2191,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); -- 2.44.0.rc0.258.g7320e95886-goog