From: Jaegeuk Kim Date: Thu, 11 Aug 2016 02:18:38 +0000 (+0800) Subject: f2fs: reduce batch size of fstrim X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2d9e9c32a04edef5482e53d15535b77aa7e595cd;p=linux-beck.git f2fs: reduce batch size of fstrim This is to reduce the batch size of fstrim to avoid long latency. Signed-off-by: Jaegeuk Kim --- 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) \