|
@@ -1568,6 +1568,7 @@ void writeback_set_ratelimit(void)
|
|
unsigned long background_thresh;
|
|
unsigned long background_thresh;
|
|
unsigned long dirty_thresh;
|
|
unsigned long dirty_thresh;
|
|
global_dirty_limits(&background_thresh, &dirty_thresh);
|
|
global_dirty_limits(&background_thresh, &dirty_thresh);
|
|
|
|
+ global_dirty_limit = dirty_thresh;
|
|
ratelimit_pages = dirty_thresh / (num_online_cpus() * 32);
|
|
ratelimit_pages = dirty_thresh / (num_online_cpus() * 32);
|
|
if (ratelimit_pages < 16)
|
|
if (ratelimit_pages < 16)
|
|
ratelimit_pages = 16;
|
|
ratelimit_pages = 16;
|