f2fs: much larger batched trim_fs job
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 23 Feb 2017 03:53:07 +0000 (19:53 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 27 Feb 2017 17:59:30 +0000 (09:59 -0800)
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>
fs/f2fs/f2fs.h

index 2ce9fba27918cc87026ecffabd72c6f2e45ca2fd..6efb2d91f5a16ea558a44ec559bd5a75febf34b6 100644 (file)
@@ -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)       \