Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6342126rwn; Tue, 13 Sep 2022 02:50:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR63owXzUA2f3jJ6RZGkan3Cce6kyaET5USJu9V3D7ACvEOdpwM2mJ/K3dN7yofCURku76jy X-Received: by 2002:a17:907:1b0e:b0:72f:9b43:b98c with SMTP id mp14-20020a1709071b0e00b0072f9b43b98cmr21357084ejc.710.1663062612453; Tue, 13 Sep 2022 02:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663062612; cv=none; d=google.com; s=arc-20160816; b=M6altoxYxz/qtOfgx0GKdE+l1PVYCcs8ZoQso54SPcEo/ikINpapusSRqbrIiXic7v BoMHi32hyEWYakHcoxDuH9wpogZsJ8ztXbNhPgYnh1aCefIOXvK+6Hc1nohFAO9x1Jg8 0F7hxD66F0EdChMLMOO1muzxmksBa+REqwDPHhNPFfgvZsKWCaw1wTQM01efB8mA93N2 GDg51tho5Uwv8vK96jwKEZ/q+syty4AFTPsbFy2WLkvYsLCzFohQJU64CWvB3WeEFffn wOBUCNjy1his3XRBKbZl8IB+C+Hk/Byvs5a51O5FzFPoS7DPjUYspjITRfHq/bJ3NW/b 0g+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=6pu2ZhZBFMD4XkPZyOHyH2BXPi6qI9shCTfgqhX/juU=; b=lbL4Ydtwl0pbqH/0GdatvW30sIjnC/WoUgHE+fucdHS/YDW2BlriSHGAIox1ZB1Ol7 wBxt3KT7jvR/StAOZZ7ljMBCtA4/OnXaiY9ksjhgD9AEqasymDHDMNBuTy+h5Y6jvPxy Eg4jxdlwA3pLN+IijG2TuYSxH+iSQFRPYa8fkdzAytIqjjxurkwH+3Yok3bqb/hR+PqJ 1FtN3rJGqqiDQRfYxjYdHOvv/jVh1A+3RZZF34s6QWXkFIkCiSauhzmvFJKXxBpFQ2Io 10QsjuxdtsdVxFTo1zPAaB6L948k4E9qMw8euDvQNNqSS2ZVB+u/KMRd9Tprp7C6Pyfe TGkw== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s18-20020a056402521200b0044e85e75120si11125337edd.84.2022.09.13.02.49.46; Tue, 13 Sep 2022 02:50:12 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231472AbiIMJIr (ORCPT + 99 others); Tue, 13 Sep 2022 05:08:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231537AbiIMJIk (ORCPT ); Tue, 13 Sep 2022 05:08:40 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B9BD578B3 for ; Tue, 13 Sep 2022 02:08:36 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 86A311063; Tue, 13 Sep 2022 02:08:42 -0700 (PDT) Received: from [10.162.42.9] (unknown [10.162.42.9]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F09AD3F73B; Tue, 13 Sep 2022 02:08:33 -0700 (PDT) Message-ID: <75318c8e-11fb-7d2a-1296-db1b06351aea@arm.com> Date: Tue, 13 Sep 2022 14:38:31 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 14/16] mm/page_alloc: use costly_order in WARN_ON_ONCE_GFP() Content-Language: en-US To: Miaohe Lin , akpm@linux-foundation.org Cc: david@redhat.com, osalvador@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220909092451.24883-1-linmiaohe@huawei.com> <20220909092451.24883-15-linmiaohe@huawei.com> From: Anshuman Khandual In-Reply-To: <20220909092451.24883-15-linmiaohe@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,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 On 9/9/22 14:54, Miaohe Lin wrote: > There's no need to check whether order > PAGE_ALLOC_COSTLY_ORDER again. > Minor readability improvement. > > Signed-off-by: Miaohe Lin Reviewed-by: Anshuman Khandual > --- > 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