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:
44819a7
)
f2fs: reduce batch size of fstrim
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 11 Aug 2016 02:18:38 +0000
(10:18 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 30 Aug 2016 01:31:05 +0000
(18:31 -0700)
This is to reduce the batch size of fstrim to avoid long latency.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
patch
|
blob
|
history
diff --git
a/fs/f2fs/f2fs.h
b/fs/f2fs/f2fs.h
index
f478cb6
..
59eed3e
100644
(file)
--- a/
fs/f2fs/f2fs.h
+++ b/
fs/f2fs/f2fs.h
@@
-158,7
+158,7
@@
enum {
CP_DISCARD,
};
-#define DEF_BATCHED_TRIM_SECTIONS
3
2
+#define DEF_BATCHED_TRIM_SECTIONS 2
#define BATCHED_TRIM_SEGMENTS(sbi) \
(SM_I(sbi)->trim_sections * (sbi)->segs_per_sec)
#define BATCHED_TRIM_BLOCKS(sbi) \