]> Pileus Git - ~andy/linux/blobdiff - fs/f2fs/gc.h
f2fs: optimize gc for better performance
[~andy/linux] / fs / f2fs / gc.h
index c22dee9f1422f9847cc659795dcaaba0c0f56a66..507056d22205bc3887df8ae4c778261647620d6a 100644 (file)
@@ -20,7 +20,7 @@
 #define LIMIT_FREE_BLOCK       40 /* percentage over invalid + free space */
 
 /* Search max. number of dirty segments to select a victim segment */
-#define MAX_VICTIM_SEARCH      20
+#define MAX_VICTIM_SEARCH 4096 /* covers 8GB */
 
 struct f2fs_gc_kthread {
        struct task_struct *f2fs_gc_task;