diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-03-24 21:08:56 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-03-29 17:34:39 -0700 |
commit | 796dbbfe4e52cc3ae860794fc20ea157391c4d93 (patch) | |
tree | 43a9c43166be1a2dc6b65fa9991bcedce6596a50 /fs | |
parent | 7a20b8a61eff81bdb7097a578752a74860e9d142 (diff) | |
download | linux-stable-796dbbfe4e52cc3ae860794fc20ea157391c4d93.tar.gz linux-stable-796dbbfe4e52cc3ae860794fc20ea157391c4d93.tar.bz2 linux-stable-796dbbfe4e52cc3ae860794fc20ea157391c4d93.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/segment.h | 2 |
1 files changed, 1 insertions, 1 deletions
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, |