diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-02-20 19:55:26 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-02-29 17:34:34 +0100 |
commit | de25240756cde07c1e5294279aac632599a91a53 (patch) | |
tree | b87a4217222cf630e914d08e294803f5930bf633 /fs/f2fs | |
parent | f2fs: introduce FAULT_NO_SEGMENT (diff) | |
download | linux-de25240756cde07c1e5294279aac632599a91a53.tar.xz linux-de25240756cde07c1e5294279aac632599a91a53.zip |
f2fs: prevent an f2fs_gc loop during disable_checkpoint
Don't get stuck in the f2fs_gc loop while disabling checkpoint. Instead, we have
a time-based management.
Reviewed-by: Chao Yu <chao@kernel.org>
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 6190aace3d8c..b36c840b85ae 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); |