[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8f56170c-d63a-41a2-a50a-a70de79965d3@kernel.org>
Date: Fri, 30 May 2025 22:35:03 +0800
From: Chao Yu <chao@...nel.org>
To: Daeho Jeong <daeho43@...il.com>, linux-kernel@...r.kernel.org,
linux-f2fs-devel@...ts.sourceforge.net, kernel-team@...roid.com
Cc: chao@...nel.org, Daeho Jeong <daehojeong@...gle.com>
Subject: Re: [f2fs-dev] [PATCH] f2fs: turn off one_time when forcibly set to
foreground GC
On 2025/5/30 5:37, Daeho Jeong wrote:
> From: Daeho Jeong <daehojeong@...gle.com>
>
> one_time mode is only for background GC. So, we need to set it back to
> false when foreground GC is enforced.
>
Need a fixes line?
> Signed-off-by: Daeho Jeong <daehojeong@...gle.com>
> ---
> fs/f2fs/gc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
> index 2b8f9239bede..f752dec71e45 100644
> --- a/fs/f2fs/gc.c
> +++ b/fs/f2fs/gc.c
> @@ -1893,6 +1893,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
Powered by blists - more mailing lists