diff --git a/[refs] b/[refs] index 5366a21bed61..0480e261a5c7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d6212a5f18c8f9f9cc884070a96e11907711217f +refs/heads/master: 3786dfdf4f00755ce5797c0e87eac8f898acb52c diff --git a/trunk/fs/f2fs/gc.c b/trunk/fs/f2fs/gc.c index 9b5d0aad5daf..fb03be68cb20 100644 --- a/trunk/fs/f2fs/gc.c +++ b/trunk/fs/f2fs/gc.c @@ -672,7 +672,7 @@ int f2fs_gc(struct f2fs_sb_info *sbi) if (!(sbi->sb->s_flags & MS_ACTIVE)) goto stop; - if (has_not_enough_free_secs(sbi)) + if (gc_type == BG_GC && has_not_enough_free_secs(sbi)) gc_type = FG_GC; if (!__get_victim(sbi, &segno, gc_type, NO_CHECK_TYPE))