diff mbox series

[f2fs-dev,2/3] f2fs: prevent an f2fs_gc loop during disable_checkpoint

Message ID 20240220232247.2856-2-jaegeuk@kernel.org (mailing list archive)
State Superseded
Headers show
Series [f2fs-dev,1/3] f2fs: check number of blocks in a current section | expand

Commit Message

Jaegeuk Kim Feb. 20, 2024, 11:22 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(+)
diff mbox series

Patch

diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index ad80cd38f3a4..9de467a28fd3 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -2190,6 +2190,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);