Skip to contentSkip to conversation

mm-hugetlbfs-use-__compound_tail_refcounted-in-__get_page_tail-too.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 22, 2014 Memory management

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-hugetlbfs-use-__compound_tail_refcounted-in-__get_page_tail-too.patch removed from -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],[email protected]
From: [email protected]
Date: Wed, 22 Jan 2014 12:12:26 -0800

The patch titled
Subject: mm: hugetlbfs: use __compound_tail_refcounted in __get_page_tail too
has been removed from the -mm tree. Its filename was
mm-hugetlbfs-use-__compound_tail_refcounted-in-__get_page_tail-too.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Andrea Arcangeli <[email protected]>
Subject: mm: hugetlbfs: use __compound_tail_refcounted in __get_page_tail too

Also remove hugetlb.h which isn't needed anymore as PageHeadHuge is handled in mm.h.

Cc Khalid Aziz <[email protected]>
Cc Pravin Shelar <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Ben Hutchings <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Andi Kleen <[email protected]>
Cc Minchan Kim <[email protected]>

---

 mm/swap.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/swap.c renamed from mm/swap.c~mm-hugetlbfs-use-__compound_tail_refcounted-in-__get_page_tail-too +1 -2
diff -puN mm/swap.c~mm-hugetlbfs-use-__compound_tail_refcounted-in-__get_page_tail-too mm/swap.c
@@ -31,7 +31,6 @@
 #include <linux/memcontrol.h>
 #include <linux/gfp.h>
 #include <linux/uio.h>
-#include <linux/hugetlb.h>
 
 #include "internal.h"
 
@@ -261,7 +260,7 @@ bool __get_page_tail(struct page *page)
 	struct page *page_head = compound_trans_head(page);
 
 	/* Ref to put_compound_page() comment. */
-	if (PageSlab(page_head) || PageHeadHuge(page_head)) {
+	if (!__compound_tail_refcounted(page_head)) {
 		smp_rmb();
 		if (likely(PageTail(page))) {
 			/*

_

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

origin.patch mm-munlock-fix-potential-race-with-thp-page-split.patch mm-fix-the-theoretical-compound_lock-vs-prep_new_page-race.patch