VM: move common VM settings to defconfig
/mm/page-writeback.c
blob:955fe35d01e05da983fff97a0cc0902d3425774b -> blob:21a7b3ef9f8458d4ba6b74be03e4cb395e217edc
--- mm/page-writeback.c
+++ mm/page-writeback.c
@@ -61,7 +61,7 @@ static inline long sync_writeback_pages(
/*
* Start background writeback (via writeback threads) at this percentage
*/
-int dirty_background_ratio = 10;
+int dirty_background_ratio = CONFIG_VM_DIRTY_BACKGROUND_RATIO;
/*
* dirty_background_bytes starts at 0 (disabled) so that it is a function of
@@ -78,7 +78,7 @@ int vm_highmem_is_dirtyable;
/*
* The generator of dirty data starts writeback at this percentage
*/
-int vm_dirty_ratio = 20;
+int vm_dirty_ratio = CONFIG_VM_DIRTY_RATIO;
/*
* vm_dirty_bytes starts at 0 (disabled) so that it is a function of
@@ -89,12 +89,12 @@ unsigned long vm_dirty_bytes;
/*
* The interval between `kupdate'-style writebacks
*/
-unsigned int dirty_writeback_interval = 5 * 100; /* centiseconds */
+unsigned int dirty_writeback_interval = CONFIG_VM_DIRTY_WRITBACK_INT; /* centiseconds */
/*
* The longest time for which data is allowed to remain dirty
*/
-unsigned int dirty_expire_interval = 30 * 100; /* centiseconds */
+unsigned int dirty_expire_interval = CONFIG_VM_DIRTY_EXPIRE_INT; /* centiseconds */
/*
* Flag that makes the machine dump writes/reads and block dirtyings.