Loading fs/f2fs/gc.c +7 −3 Original line number Diff line number Diff line Loading @@ -925,10 +925,14 @@ int f2fs_gc(struct f2fs_sb_info *sbi, bool sync) */ if (__get_victim(sbi, &segno, gc_type) || prefree_segments(sbi)) { write_checkpoint(sbi, &cpc); ret = write_checkpoint(sbi, &cpc); if (ret) goto stop; segno = NULL_SEGNO; } else if (has_not_enough_free_secs(sbi, 0, 0)) { write_checkpoint(sbi, &cpc); ret = write_checkpoint(sbi, &cpc); if (ret) goto stop; } } Loading @@ -948,7 +952,7 @@ int f2fs_gc(struct f2fs_sb_info *sbi, bool sync) goto gc_more; if (gc_type == FG_GC) write_checkpoint(sbi, &cpc); ret = write_checkpoint(sbi, &cpc); } stop: mutex_unlock(&sbi->gc_mutex); Loading Loading
fs/f2fs/gc.c +7 −3 Original line number Diff line number Diff line Loading @@ -925,10 +925,14 @@ int f2fs_gc(struct f2fs_sb_info *sbi, bool sync) */ if (__get_victim(sbi, &segno, gc_type) || prefree_segments(sbi)) { write_checkpoint(sbi, &cpc); ret = write_checkpoint(sbi, &cpc); if (ret) goto stop; segno = NULL_SEGNO; } else if (has_not_enough_free_secs(sbi, 0, 0)) { write_checkpoint(sbi, &cpc); ret = write_checkpoint(sbi, &cpc); if (ret) goto stop; } } Loading @@ -948,7 +952,7 @@ int f2fs_gc(struct f2fs_sb_info *sbi, bool sync) goto gc_more; if (gc_type == FG_GC) write_checkpoint(sbi, &cpc); ret = write_checkpoint(sbi, &cpc); } stop: mutex_unlock(&sbi->gc_mutex); Loading