diff options
author | 2016-08-11 10:18:38 +0800 | |
---|---|---|
committer | 2016-08-29 18:31:05 -0700 | |
commit | 2d9e9c32a04edef5482e53d15535b77aa7e595cd (patch) | |
tree | 69d13ad232fa821e59ddd4320dd08c3a81ca937d | |
parent | f2fs: clean up bio cache trace (diff) | |
download | linux-dev-2d9e9c32a04edef5482e53d15535b77aa7e595cd.tar.xz linux-dev-2d9e9c32a04edef5482e53d15535b77aa7e595cd.zip |
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>
-rw-r--r-- | fs/f2fs/f2fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index f478cb6ec378..59eed3ec35c7 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -158,7 +158,7 @@ enum { 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) \ |