rmap-fix-compound-check-logic-in-page_remove_file_rmap.patch removed from -mm tree
The patch titled
Subject: rmap: fix compound check logic in page_remove_file_rmap
has been removed from the -mm tree. Its filename was
rmap-fix-compound-check-logic-in-page_remove_file_rmap.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Steve Capper <[email protected]>
Subject: rmap: fix compound check logic in page_remove_file_rmap
In page_remove_file_rmap(.) we have the following check:
VM_BUG_ON_PAGE(compound && !PageTransHuge(page), page);
This is meant to check for either HugeTLB pages or THP when a compound page is passed in.
Unfortunately, if one disables CONFIG_TRANSPARENT_HUGEPAGE, then PageTransHuge(.) will always return false, provoking BUGs when one runs the libhugetlbfs test suite.
This patch replaces PageTransHuge(), with PageHead() which will work for both HugeTLB and THP.
---
mm/rmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/rmap.c renamed from mm/rmap.c~rmap-fix-compound-check-logic-in-page_remove_file_rmap +1 -1
@@ -1304,7 +1304,7 @@ static void page_remove_file_rmap(struct {int i, nr =1 ; -VM_BUG_ON_PAGE (compound && !PageTransHuge (page), page); +VM_BUG_ON_PAGE (compound && !PageHead (page), page);lock_page_memcg (page);/* Hugepages are not counted in NR_FILE_MAPPED for now. */
_
Patches currently in -mm which might be from [email protected] are