Skip to contentSkip to conversation

mm-hugetlb-remove-useless-check-about-mapping-type.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 12, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-hugetlb-remove-useless-check-about-mapping-type.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 12 Sep 2013 12:44:05 -0700

The patch titled
Subject: mm, hugetlb: remove useless check about mapping type
has been removed from the -mm tree. Its filename was
mm-hugetlb-remove-useless-check-about-mapping-type.patch

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

------------------------------------------------------
From: Joonsoo Kim <[email protected]>
Subject: mm, hugetlb: remove useless check about mapping type

is_vma_resv_set(vma, HPAGE_RESV_OWNER) implys that this mapping is for private. So we don't need to check whether this mapping is for shared or not.

This patch is just for clean-up.

Cc Aneesh Kumar <[email protected]>
Cc Naoya Horiguchi <[email protected]>
Cc David Gibson <[email protected]>
Cc Wanpeng Li <[email protected]>
Cc Hillf Danton <[email protected]>

---

 mm/hugetlb.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-remove-useless-check-about-mapping-type +1 -2
diff -puN mm/hugetlb.c~mm-hugetlb-remove-useless-check-about-mapping-type mm/hugetlb.c
@@ -2564,8 +2564,7 @@ retry_avoidcopy:
 	 * at the time of fork() could consume its reserves on COW instead
 	 * of the full address range.
 	 */
-	if (!(vma->vm_flags & VM_MAYSHARE) &&
-			is_vma_resv_set(vma, HPAGE_RESV_OWNER) &&
+	if (is_vma_resv_set(vma, HPAGE_RESV_OWNER) &&
 			old_page != pagecache_page)
 		outside_reserve = 1;
 

_

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

origin.patch