Lines 1568-1573
void writeback_set_ratelimit(void)
Link Here
|
1568 |
unsigned long background_thresh; |
1568 |
unsigned long background_thresh; |
1569 |
unsigned long dirty_thresh; |
1569 |
unsigned long dirty_thresh; |
1570 |
global_dirty_limits(&background_thresh, &dirty_thresh); |
1570 |
global_dirty_limits(&background_thresh, &dirty_thresh); |
|
|
1571 |
global_dirty_limit = dirty_thresh; |
1571 |
ratelimit_pages = dirty_thresh / (num_online_cpus() * 32); |
1572 |
ratelimit_pages = dirty_thresh / (num_online_cpus() * 32); |
1572 |
if (ratelimit_pages < 16) |
1573 |
if (ratelimit_pages < 16) |
1573 |
ratelimit_pages = 16; |
1574 |
ratelimit_pages = 16; |
1574 |
- |
|
|