projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b10d36
)
f2fs: prevent an f2fs_gc loop during disable_checkpoint
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 20 Feb 2024 18:55:26 +0000
(10:55 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 29 Feb 2024 16:34:34 +0000
(08:34 -0800)
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>
fs/f2fs/super.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/super.c
b/fs/f2fs/super.c
index 6190aace3d8c5c3457b396bd8894e0c284c5328b..b36c840b85ae39b33cfa6c6c98699611eb65e883 100644
(file)
--- 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);