From nobody Sat Feb 7 07:25:49 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F051C001B0 for ; Tue, 8 Aug 2023 02:06:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230074AbjHHCGV (ORCPT ); Mon, 7 Aug 2023 22:06:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbjHHCGT (ORCPT ); Mon, 7 Aug 2023 22:06:19 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 943C210FF for ; Mon, 7 Aug 2023 19:06:18 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4RKc2q2fmKz1KCFW; Tue, 8 Aug 2023 10:05:07 +0800 (CST) Received: from huawei.com (10.174.151.185) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 8 Aug 2023 10:06:16 +0800 From: Miaohe Lin To: CC: , , Subject: [PATCH] mm/page_alloc: remove unneeded current_order check Date: Tue, 8 Aug 2023 10:05:55 +0800 Message-ID: <20230808020555.658430-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" current_order is guaranteed to '>=3D' min_order while min_order always '>= =3D' order. So current_order must be '>=3D' order. Signed-off-by: Miaohe Lin --- mm/page_alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 96b7c1a7d1f2..d37ec87515d0 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2072,8 +2072,7 @@ __rmqueue_fallback(struct zone *zone, int order, int = start_migratetype, * allocation falls back into a different pageblock than this * one, it won't cause permanent fragmentation. */ - if (!can_steal && start_migratetype =3D=3D MIGRATE_MOVABLE - && current_order > order) + if (!can_steal && start_migratetype =3D=3D MIGRATE_MOVABLE) goto find_smallest; =20 goto do_steal; --=20 2.33.0