summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-02-23 06:53:07 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-27 20:59:30 +0300
commit47b898081605684aa1bacd1d14443a50c660c1fe (patch)
treee105527aace131fc8d6a6381069c0f8e7a47c7d7 /fs/f2fs
parentad4d307fce0909a5f70635826f779321ab95b469 (diff)
downloadlinux-47b898081605684aa1bacd1d14443a50c660c1fe.tar.xz
f2fs: much larger batched trim_fs job
We have a kernel thread to issue discard commands, so we can increase the number of batched discard sections. By default, now it becomes 4GB range. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 2ce9fba27918..6efb2d91f5a1 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -128,7 +128,7 @@ enum {
CP_DISCARD,
};
-#define DEF_BATCHED_TRIM_SECTIONS 2
+#define DEF_BATCHED_TRIM_SECTIONS 2048
#define BATCHED_TRIM_SEGMENTS(sbi) \
(SM_I(sbi)->trim_sections * (sbi)->segs_per_sec)
#define BATCHED_TRIM_BLOCKS(sbi) \