mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mm: revert "page-writeback.c: subtract min_free_kbytes from dirtyable memory"
This reverts commit75f7ad8e04. It was the result of a problem observed with a 3.2 kernel and merged in 3.9, while the issue had been resolved upstream in 3.3 (commitab8fabd46f: "mm: exclude reserved pages from dirtyable memory"). The "reserved pages" are a superset of min_free_kbytes, thus this change is redundant and confusing. Revert it. Signed-off-by: Johannes Weiner <[email protected]> Cc: Paul Szabo <[email protected]> Cc: Rik van Riel <[email protected]> Acked-by: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
81c0a2bb51
commit
72457c0a05
1 changed files with 0 additions and 3 deletions
|
|
@ -241,9 +241,6 @@ static unsigned long global_dirtyable_memory(void)
|
|||
if (!vm_highmem_is_dirtyable)
|
||||
x -= highmem_dirtyable_memory(x);
|
||||
|
||||
/* Subtract min_free_kbytes */
|
||||
x -= min_t(unsigned long, x, min_free_kbytes >> (PAGE_SHIFT - 10));
|
||||
|
||||
return x + 1; /* Ensure that we never return 0 */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue