From: Jaegeuk Kim Date: Sat, 25 Mar 2017 01:08:56 +0000 (-0400) Subject: f2fs: start SSR much eariler to avoid FG_GC X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=796dbbfe4e52cc3ae860794fc20ea157391c4d93;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index 5e8ad4280a50..31846b0fcb95 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h @@ -495,7 +495,7 @@ static inline bool need_SSR(struct f2fs_sb_info *sbi) return false; 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,