X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=mm%2Fpage-writeback.c;h=93d8d2f7108ccb8b3c5a73de42361f23d98049c1;hb=eb6332a54542bcd3aedb121ecb247f172b8f3602;hp=3fc261705b1e068c28c72a329f31ee431ae3fdc9;hpb=8ebfdf2babcda5a3b06cc67523bca1f9aed46009;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 3fc2617..93d8d2f 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -95,6 +95,8 @@ unsigned long vm_dirty_bytes; */ unsigned int dirty_writeback_interval = 5 * 100; /* centiseconds */ +EXPORT_SYMBOL_GPL(dirty_writeback_interval); + /* * The longest time for which data is allowed to remain dirty */ @@ -202,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; @@ -1566,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;