Skip to contentSkip to conversation

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

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

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

The callers of has_same_uncharge_info() has accessed the original file_region and new file_region, and they are impossible to be NULL now. So we can remove the file_region validation in has_same_uncharge_info() to simplify the code.

---

 mm/hugetlb.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/hugetlb.c renamed from mm/hugetlb.c~hugetlb-remove-redundant-validation-in-has_same_uncharge_info +1 -2
@@ -332,8 +332,7 @@ static bool has_same_uncharge_info(struc
 				   struct file_region *org)
 {
 #ifdef CONFIG_CGROUP_HUGETLB
-	return rg && org &&
-	       rg->reservation_counter == org->reservation_counter &&
+	return rg->reservation_counter == org->reservation_counter &&
 	       rg->css == org->css;
 
 #else

_

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

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