Skip to contentSkip to conversation

+ mm-revert-page-writebackc-subtract-min_free_kbytes-from-dirtyable-memory.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jul 29, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-revert-page-writebackc-subtract-min_free_kbytes-from-dirtyable-memory.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 29 Jul 2013 12:59:56 -0700

The patch titled
Subject: mm: revert "page-writeback.c: subtract min_free_kbytes from dirtyable memory"
has been added to the -mm tree. Its filename is
mm-revert-page-writebackc-subtract-min_free_kbytes-from-dirtyable-memory.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-revert-page-writebackc-subtract-min_free_kbytes-from-dirtyable-memory.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-revert-page-writebackc-subtract-min_free_kbytes-from-dirtyable-memory.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Johannes Weiner <[email protected]>
Subject: mm: revert "page-writeback.c: subtract min_free_kbytes from dirtyable memory"

This reverts 75f7ad8e043. 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 (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.

---

 mm/page-writeback.c |    3 ---
 1 file changed, 3 deletions(-)
mm/page-writeback.c renamed from mm/page-writeback.c~mm-revert-page-writebackc-subtract-min_free_kbytes-from-dirtyable-memory +0 -2
diff -puN mm/page-writeback.c~mm-revert-page-writebackc-subtract-min_free_kbytes-from-dirtyable-memory mm/page-writeback.c
@@ -241,9 +241,6 @@ static unsigned long global_dirtyable_me
 	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));