X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mm%2Fpage-writeback.c;h=93d8d2f7108ccb8b3c5a73de42361f23d98049c1;hb=5c08d7fae0815cd163a98e05c8d94fc0de77ff67;hp=26adea8ca2e7dd9ebdbc9c0938498a1a8a56324d;hpb=b29e2679d0da91c60d3ac190d9c3bd65ac2f68c5;p=~andy%2Flinux diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 26adea8ca2e..93d8d2f7108 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -204,7 +204,7 @@ static unsigned long highmem_dirtyable_memory(unsigned long total) * Returns the global number of pages potentially available for dirty * page cache. This is the base value for the global dirty limits. */ -unsigned long global_dirtyable_memory(void) +static unsigned long global_dirtyable_memory(void) { unsigned long x; @@ -1568,6 +1568,7 @@ void writeback_set_ratelimit(void) unsigned long background_thresh; unsigned long dirty_thresh; global_dirty_limits(&background_thresh, &dirty_thresh); + global_dirty_limit = dirty_thresh; ratelimit_pages = dirty_thresh / (num_online_cpus() * 32); if (ratelimit_pages < 16) ratelimit_pages = 16;