Skip to content

Commit

Permalink
mm: revert "page-writeback.c: subtract min_free_kbytes from dirtyable…
Browse files Browse the repository at this point in the history
… memory"

This reverts commit 75f7ad8.  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 (commit ab8fabd: "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]>
  • Loading branch information
hnaz authored and torvalds committed Sep 11, 2013
1 parent 81c0a2b commit 72457c0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}

Expand Down

0 comments on commit 72457c0

Please sign in to comment.