Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1707815rwn; Fri, 9 Sep 2022 02:50:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR5jag2nstF1QbuiJZyVqoDDYwQlufJCC1Yh+PAESrY+QJuXCayjlOGvvk2FuM0l7qRxREQk X-Received: by 2002:ac2:4c42:0:b0:497:9dfe:e870 with SMTP id o2-20020ac24c42000000b004979dfee870mr3940550lfk.184.1662717053473; Fri, 09 Sep 2022 02:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662717053; cv=none; d=google.com; s=arc-20160816; b=pRcVEKbP7+GftvrCuWjpozLa9HMqReUlQZou1Tl+Ry0nwulx7UeYxFi3VYFc1+h7zM Lac04D7gZFrBnOts4PfKL7Beb4lnNfr4eUn4RfNYHhI2jJ9/q7Pz3EqCDBgYfJgZUh8y U+QMvifqJGXf+HTY1XXizLU1EePOldpqQlgpRnx31bxdbKLa2r+3Qs1vnW+2yzNhiSOb EQVc14E4G8l5caclNMMgJHHb/7eDjrA/IL8+CBi1utbSJyIWoUL6HE5CLoPpksjTBWIr jNDpfrN0ijf5kvT9WrPBbRl1s1KN/2aLn+h3qsFXLRcLSstMZ1GO0lvBVT98byY+2hr/ Mjjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/4c0ej5WbB3FlbBRH3iLmiyHR/dTVgllmwFl0dVweck=; b=zo1Hw/SO8qmaLbVThJwQC7SWNhaBJMThuybpBOEq+U1m3gSHvB8dyyRQzqf00r2W9+ 4CKiIXi6UbdPdC1ODOkxstd2Pwf6/HiGRTNVulQp5BHuuM68gDSmrar6txsbUZqRchiB 33FzsOhDVC/lu/cS2p0HEsVDnPO+mtWA0DlyJDeRM1c6wle6mJSROqE9Wrpz8zz9sVmq Zp5TmEUh7VJLlWID2B7VIhD0WmRfnl7cobAbONG7ZoCCqZuvOq9iY23dG0zS+lYnHY5A JwjZWCiskGrf/W1lolijw/CuX5aeLVJPbdMhIoSegHJjI2+gAQ3y5Xz/GKh6kZNKSGPh ZUuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b30-20020a0565120b9e00b004946de596b6si22070lfv.560.2022.09.09.02.50.24; Fri, 09 Sep 2022 02:50:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231559AbiIIJ21 (ORCPT + 99 others); Fri, 9 Sep 2022 05:28:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbiIIJ07 (ORCPT ); Fri, 9 Sep 2022 05:26:59 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22742113649 for ; Fri, 9 Sep 2022 02:25:33 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MP9VV0TtdzmV9d; Fri, 9 Sep 2022 17:21:54 +0800 (CST) Received: from huawei.com (10.175.124.27) 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.2375.24; Fri, 9 Sep 2022 17:25:31 +0800 From: Miaohe Lin To: CC: , , , , Subject: [PATCH 14/16] mm/page_alloc: use costly_order in WARN_ON_ONCE_GFP() Date: Fri, 9 Sep 2022 17:24:49 +0800 Message-ID: <20220909092451.24883-15-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220909092451.24883-1-linmiaohe@huawei.com> References: <20220909092451.24883-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no need to check whether order > PAGE_ALLOC_COSTLY_ORDER again. Minor readability improvement. Signed-off-by: Miaohe Lin --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 63ad25e86010..262e8972e019 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5272,7 +5272,7 @@ __alloc_pages_slowpath(gfp_t gfp_mask, unsigned int order, * so that we can identify them and convert them to something * else. */ - WARN_ON_ONCE_GFP(order > PAGE_ALLOC_COSTLY_ORDER, gfp_mask); + WARN_ON_ONCE_GFP(costly_order, gfp_mask); /* * Help non-failing allocations by giving them access to memory -- 2.23.0