commit | 2d9e9c32a04edef5482e53d15535b77aa7e595cd | [log] [tgz] |
---|---|---|
author | Jaegeuk Kim <jaegeuk@kernel.org> | Thu Aug 11 10:18:38 2016 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Mon Aug 29 18:31:05 2016 -0700 |
tree | 69d13ad232fa821e59ddd4320dd08c3a81ca937d | |
parent | 44819a76d1304dd67672abaea3be55eae70ef766 [diff] [blame] |
f2fs: reduce batch size of fstrim This is to reduce the batch size of fstrim to avoid long latency. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index f478cb6..59eed3e 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h
@@ -158,7 +158,7 @@ CP_DISCARD, }; -#define DEF_BATCHED_TRIM_SECTIONS 32 +#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) \