diff mbox series

[f2fs-dev,4/5] f2fs: prevent an f2fs_gc loop during disable_checkpoint

Message ID 20240223205535.307307-4-jaegeuk@kernel.org (mailing list archive)
State Accepted
Commit 496b655d046082e89dcf650c5d7657a59859cfb6
Headers show
Series [f2fs-dev,1/5] f2fs: check number of blocks in a current section | expand

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

Chao Yu Feb. 26, 2024, 2:58 a.m. UTC | #1
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,
Daeho Jeong Feb. 26, 2024, 7:14 p.m. UTC | #2
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 mbox series

Patch

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);