Commit 7db41067 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] revert writeback threshold changes

The post-2.6.8 recent tweaks to the page writeback thresholding code seems to
be doing the wrong thing for small unmapped_ratios - nathans had a few
problems with it.  The problem it was trying to fix is minor and fairly
theoretical anyway, so back it out to the old code.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 511ca0be
...@@ -153,11 +153,9 @@ get_dirty_limits(struct writeback_state *wbs, long *pbackground, long *pdirty) ...@@ -153,11 +153,9 @@ get_dirty_limits(struct writeback_state *wbs, long *pbackground, long *pdirty)
if (dirty_ratio < 5) if (dirty_ratio < 5)
dirty_ratio = 5; dirty_ratio = 5;
/* background_ratio = dirty_background_ratio;
* Keep the ratio between dirty_ratio and background_ratio roughly if (background_ratio >= dirty_ratio)
* what the sysctls are after dirty_ratio has been scaled (above). background_ratio = dirty_ratio / 2;
*/
background_ratio = dirty_background_ratio * dirty_ratio/vm_dirty_ratio;
background = (background_ratio * total_pages) / 100; background = (background_ratio * total_pages) / 100;
dirty = (dirty_ratio * total_pages) / 100; dirty = (dirty_ratio * total_pages) / 100;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment