From mboxrd@z Thu Jan 1 00:00:00 1970 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 26FFB284685; Tue, 12 Aug 2025 18:52:44 +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=1755024765; cv=none; b=sB5vyxMuV5Ods0YSyk0EJPhQz6GEmp4rnERMs2UMozNqKLZSJzUhKLmTS5yPy4Ov7BP+ZuTUPRRsICo6uAb+hu15OniiL58jfikd/hkqx+cSVThhDQrdtVrogLiC0bqGHnunZztp27CXa8+nuYF+kKVuCVEMNbuJPwu3w97Afyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755024765; c=relaxed/simple; bh=ZkxoPuhbftXg8JxdKCmaOWD2O5/EvrBhuv+KsuREZXA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YiWJNZQ53Rfg/fMb1RW58sfS6jCRQnnTkTlrW9dZ+CO+eSISdVxnEL217kvt1Hcxo4/oNiiJQ5ZSEEtTW32qWFUquPjY8yXFpsRjkn8wsF026L6tR5fQKhGNLXx1B7TPui9EjgMjrbUYRX73sN+K75SJoSEjiwV5f6yZO5pNvdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KaX6/byC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KaX6/byC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33485C4CEF0; Tue, 12 Aug 2025 18:52:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755024764; bh=ZkxoPuhbftXg8JxdKCmaOWD2O5/EvrBhuv+KsuREZXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KaX6/byCUUWeTdohK0KojbFHR+PD+3kXDbhuaC7TpRt57PcxNijS18UvaRrYr/rQg Jiqmb8CwYk9OM6lf4eHLctaGvh0lpFCWEPULNEX2BTLZRPoYrS0IHMvKefOPfFLlDz 197B/e55N+la3YHTEqASPtEHzLCfRdULEKnW+qvg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Daeho Jeong , Chao Yu , Jaegeuk Kim , Sasha Levin Subject: [PATCH 6.16 471/627] f2fs: turn off one_time when forcibly set to foreground GC Date: Tue, 12 Aug 2025 19:32:46 +0200 Message-ID: <20250812173441.184356907@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250812173419.303046420@linuxfoundation.org> References: <20250812173419.303046420@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Daeho Jeong [ Upstream commit 8142daf8a53806689186ee255cc02f89af7f8890 ] one_time mode is only for background GC. So, we need to set it back to false when foreground GC is enforced. Fixes: 9748c2ddea4a ("f2fs: do FG_GC when GC boosting is required for zoned devices") Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/gc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 3cb5242f4ddf..d915b54392b8 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -1891,6 +1891,7 @@ int f2fs_gc(struct f2fs_sb_info *sbi, struct f2fs_gc_control *gc_control) /* Let's run FG_GC, if we don't have enough space. */ if (has_not_enough_free_secs(sbi, 0, 0)) { gc_type = FG_GC; + gc_control->one_time = false; /* * For example, if there are many prefree_segments below given -- 2.39.5