OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a20b8a
)
f2fs: start SSR much eariler to avoid FG_GC
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Sat, 25 Mar 2017 01:08:56 +0000
(21:08 -0400)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 30 Mar 2017 00:34:39 +0000
(17:34 -0700)
This patch initiates SSR much eariler, resulting in less FG_GC.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.h
patch
|
blob
|
history
diff --git
a/fs/f2fs/segment.h
b/fs/f2fs/segment.h
index
5e8ad42
..
31846b0
100644
(file)
--- 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,