Skip to contentSkip to conversation

hugetlb-remove-unnecessary-set_page_count-in-prep_compound_gigantic_page.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: hugetlb: remove unnecessary set_page_count in prep_compound_gigantic_page
has been removed from the -mm tree. Its filename was
hugetlb-remove-unnecessary-set_page_count-in-prep_compound_gigantic_page.patch

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

------------------------------------------------------
From: Mike Kravetz <[email protected]>
Subject: hugetlb: remove unnecessary set_page_count in prep_compound_gigantic_page

In commit 7118fc2906e29 ("hugetlb: address ref count racing in prep_compound_gigantic_page"), page_ref_freeze is used to atomically zero the ref count of tail pages iff they are 1. The unconditional call to set_page_count(0) was left in the code. This call is after page_ref_freeze so it is really a noop.

Remove redundant and unnecessary set_page_count call.

---

 mm/hugetlb.c |    1 -
 1 file changed, 1 deletion(-)
mm/hugetlb.c renamed from mm/hugetlb.c~hugetlb-remove-unnecessary-set_page_count-in-prep_compound_gigantic_page +0 -1
@@ -1792,7 +1792,6 @@ static bool __prep_compound_gigantic_pag
 		} else {
 			VM_BUG_ON_PAGE(page_count(p), p);
 		}
-		set_page_count(p, 0);
 		set_compound_head(p, page);
 	}
 	atomic_set(compound_mapcount_ptr(page), -1);

_

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