Skip to contentSkip to conversation

+ hugetlb-update_and_free_page-dont-clear-pg_reserved-bit.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Apr 17, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + hugetlb-update_and_free_page-dont-clear-pg_reserved-bit.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 17 Apr 2014 16:01:25 -0700

The patch titled
Subject: hugetlb: update_and_free_page(): don't clear PG_reserved bit
has been added to the -mm tree. Its filename is
hugetlb-update_and_free_page-dont-clear-pg_reserved-bit.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/hugetlb-update_and_free_page-dont-clear-pg_reserved-bit.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/hugetlb-update_and_free_page-dont-clear-pg_reserved-bit.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: Luiz Capitulino <[email protected]>
Subject: hugetlb: update_and_free_page(): don't clear PG_reserved bit

Hugepages pages never get the PG_reserved bit set, so don't clear it.

However, note that if the bit gets mistakenly set free_pages_check() will catch it.

---

 mm/hugetlb.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/hugetlb.c renamed from mm/hugetlb.c~hugetlb-update_and_free_page-dont-clear-pg_reserved-bit +2 -2
diff -puN mm/hugetlb.c~hugetlb-update_and_free_page-dont-clear-pg_reserved-bit mm/hugetlb.c
@@ -619,8 +619,8 @@ static void update_and_free_page(struct
 	for (i = 0; i < pages_per_huge_page(h); i++) {
 		page[i].flags &= ~(1 << PG_locked | 1 << PG_error |
 				1 << PG_referenced | 1 << PG_dirty |
-				1 << PG_active | 1 << PG_reserved |
-				1 << PG_private | 1 << PG_writeback);
+				1 << PG_active | 1 << PG_private |
+				1 << PG_writeback);
 	}
 	VM_BUG_ON_PAGE(hugetlb_cgroup_from_page(page), page);
 	set_compound_page_dtor(page, NULL);

_

Patches currently in -mm which might be from [email protected] are

hugetlb-prep_compound_gigantic_page-drop-__init-marker.patch hugetlb-add-hstate_is_gigantic.patch hugetlb-update_and_free_page-dont-clear-pg_reserved-bit.patch hugetlb-move-helpers-up-in-the-file.patch hugetlb-add-support-for-gigantic-page-allocation-at-runtime.patch