Procházet zdrojové kódy

f2fs: start SSR much eariler to avoid FG_GC

This patch initiates SSR much eariler, resulting in less FG_GC.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Jaegeuk Kim před 8 roky
rodič
revize
796dbbfe4e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      fs/f2fs/segment.h

+ 1 - 1
fs/f2fs/segment.h

@@ -495,7 +495,7 @@ static inline bool need_SSR(struct f2fs_sb_info *sbi)
 		return false;
 		return false;
 
 
 	return free_sections(sbi) <= (node_secs + 2 * dent_secs + imeta_secs +
 	return free_sections(sbi) <= (node_secs + 2 * dent_secs + imeta_secs +
-						reserved_sections(sbi) + 1);
+						2 * reserved_sections(sbi));
 }
 }
 
 
 static inline bool has_not_enough_free_secs(struct f2fs_sb_info *sbi,
 static inline bool has_not_enough_free_secs(struct f2fs_sb_info *sbi,