Skip to contentSkip to conversation

hugetlb-remove-redundant-vm_bug_on-in-add_reservation_in_range.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 redundant VM_BUG_ON() in add_reservation_in_range()
has been removed from the -mm tree. Its filename was
hugetlb-remove-redundant-vm_bug_on-in-add_reservation_in_range.patch

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

------------------------------------------------------
From: Baolin Wang <[email protected]>
Subject: hugetlb: remove redundant VM_BUG_ON() in add_reservation_in_range()

When calling hugetlb_resv_map_add(), we've guaranteed that the parameter 'to' is always larger than 'from', so it never returns a negative value from hugetlb_resv_map_add(). Thus remove the redundant VM_BUG_ON().

---

 mm/hugetlb.c |    1 -
 1 file changed, 1 deletion(-)
mm/hugetlb.c renamed from mm/hugetlb.c~hugetlb-remove-redundant-vm_bug_on-in-add_reservation_in_range +0 -1
@@ -445,7 +445,6 @@ static long add_reservation_in_range(str
 		add += hugetlb_resv_map_add(resv, rg, last_accounted_offset,
 					    t, h, h_cg, regions_needed);
 
-	VM_BUG_ON(add < 0);
 	return add;
 }
 

_

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

mm-migrate-simplify-the-file-backed-pages-validation-when-migrating-its-mapping.patch