Skip to contentSkip to conversation

mm-hugetlb-remove-redundant-list_empty-check-in-gather_surplus_pages.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-redundant-list_empty-check-in-gather_surplus_pages.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],[email protected]
From: [email protected]
Date: Thu, 12 Sep 2013 12:43:11 -0700

The patch titled
Subject: mm, hugetlb: remove redundant list_empty check in gather_surplus_pages()
has been removed from the -mm tree. Its filename was
mm-hugetlb-remove-redundant-list_empty-check-in-gather_surplus_pages.patch

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

------------------------------------------------------
From: Joonsoo Kim <[email protected]>
Subject: mm, hugetlb: remove redundant list_empty check in gather_surplus_pages()

If list is empty, list_for_each_entry_safe() doesn't do anything. So, this check is redundant. Remove it.

Cc Naoya Horiguchi <[email protected]>
Cc Wanpeng Li <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Mel Gorman <[email protected]>
Cc "Aneesh Kumar K.V" <[email protected]>
Cc KAMEZAWA Hiroyuki <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Davidlohr Bueso <[email protected]>
Cc David Gibson <[email protected]>

---

 mm/hugetlb.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-remove-redundant-list_empty-check-in-gather_surplus_pages +2 -5
diff -puN mm/hugetlb.c~mm-hugetlb-remove-redundant-list_empty-check-in-gather_surplus_pages mm/hugetlb.c
@@ -1037,11 +1037,8 @@ free:
 	spin_unlock(&hugetlb_lock);
 
 	/* Free unnecessary surplus pages to the buddy allocator */
-	if (!list_empty(&surplus_list)) {
-		list_for_each_entry_safe(page, tmp, &surplus_list, lru) {
-			put_page(page);
-		}
-	}
+	list_for_each_entry_safe(page, tmp, &surplus_list, lru)
+		put_page(page);
 	spin_lock(&hugetlb_lock);
 
 	return ret;

_

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

origin.patch