Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d9e9c32 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: reduce batch size of fstrim



This is to reduce the batch size of fstrim to avoid long latency.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 44819a76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)	\