diff options
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/gc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 83cec8f868c6..37b05e1c574c 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c | |||
@@ -669,8 +669,10 @@ gc_more: | |||
669 | if (!(sbi->sb->s_flags & MS_ACTIVE)) | 669 | if (!(sbi->sb->s_flags & MS_ACTIVE)) |
670 | goto stop; | 670 | goto stop; |
671 | 671 | ||
672 | if (gc_type == BG_GC && has_not_enough_free_secs(sbi, nfree)) | 672 | if (gc_type == BG_GC && has_not_enough_free_secs(sbi, nfree)) { |
673 | gc_type = FG_GC; | 673 | gc_type = FG_GC; |
674 | write_checkpoint(sbi, false); | ||
675 | } | ||
674 | 676 | ||
675 | if (!__get_victim(sbi, &segno, gc_type, NO_CHECK_TYPE)) | 677 | if (!__get_victim(sbi, &segno, gc_type, NO_CHECK_TYPE)) |
676 | goto stop; | 678 | goto stop; |