Message ID | 20240223205535.307307-4-jaegeuk@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-79149-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp839843dyb; Fri, 23 Feb 2024 12:57:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX1htjWRIhu9W3PwnV4bldDfMyWWZLVHk3N9Tg11ph6AMiUeyDAubyseSD9W2fOBUb3zkLeFIAew2yUeuJWyOZFyetUJA== X-Google-Smtp-Source: AGHT+IF6Q7YUK3ptbGItRMh8nCuCVgMJdRXlXksWodOynNIg8bW9oceDVkpJOKyUOFl16LP2xntm X-Received: by 2002:a17:902:8494:b0:1db:729a:e2a0 with SMTP id c20-20020a170902849400b001db729ae2a0mr849200plo.47.1708721856430; Fri, 23 Feb 2024 12:57:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708721856; cv=pass; d=google.com; s=arc-20160816; b=buRZqTGTuDo6q1z24zwpN5v/bnexMjBY+vpusVP4cmLA45Oiy71PiOukpOuhDKsU63 X2KFkO3ie9/6M3beAKc7Px7unbPwHetXMQIOd+gI9FtgaPz3RKuBkTqXQX9zZb9OmTnY rOhXXu5tKOsXqzDw54cUEI0Xwzo6k8wIAnsT7YKA6GsqmwD+w7J8Y/ohYgqGSp6G1AvU bp8X8ViJ7+hctwQYpMC1BWGNhsj8abnT8uZw1OWwxP31dp99/exUjgojZRic+1qye1NZ z0hALPGtVf/lhGyKkJiYbNx8fHYgB/cmrtFkiZWUq0Xfx0RyEhgvdaE7n/w9B2kQvKeQ Gpzg== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79149-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j13-20020a170902da8d00b001db6f2bec7csi13084127plx.236.2024.02.23.12.57.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 12:57:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79149-ouuuleilei=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; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79149-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 44C8CB21837 for <ouuuleilei@gmail.com>; Fri, 23 Feb 2024 20:56:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9598614CADB; Fri, 23 Feb 2024 20:55:42 +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 <linux-kernel@vger.kernel.org>; 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 <jaegeuk@kernel.org> To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim <jaegeuk@kernel.org> 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: <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: 1791724728929745464 X-GMAIL-MSGID: 1791724728929745464 |
Series |
[1/5] f2fs: check number of blocks in a current section
|
|
Commit Message
Jaegeuk Kim
Feb. 23, 2024, 8:55 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(+)
Comments
On 2024/2/24 4:55, Jaegeuk Kim wrote: > 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> Reviewed-by: Chao Yu <chao@kernel.org> Thanks,
Reviewed-by: Daeho Jeong <daehojeong@google.com> On Sun, Feb 25, 2024 at 6:59 PM Chao Yu <chao@kernel.org> wrote: > > On 2024/2/24 4:55, Jaegeuk Kim wrote: > > 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> > > Reviewed-by: Chao Yu <chao@kernel.org> > > Thanks, > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
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);