The uniform splitting logic is designed so that the @split_order variable starts at the target @new_order and subsequently decreases with each iteration. Given that both @split_order and @new_order are integers and the splitting process only ever targets the @new_order for a uniform split, the condition where split_order != new_order will not logically occur within the expected execution path. Removes the check for this non-existent case, simplifying the code. Signed-off-by: Wei Yang Cc: Zi Yan --- mm/huge_memory.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 63380b185df1..a1f0da9486eb 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -3545,8 +3545,6 @@ static int __split_unmapped_folio(struct folio *folio, int new_order, /* order-1 anonymous folio is not supported */ if (is_anon && split_order == 1) continue; - if (uniform_split && split_order != new_order) - continue; if (mapping) { /* -- 2.34.1