Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6071400rwn; Mon, 12 Sep 2022 20:43:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR4GWIioTP72DdwU7+aBfH4PVOs4f9KYRu7nHjambVv4qAXVwMxY8YvlwjCVewum8F+LwllR X-Received: by 2002:a05:6402:5209:b0:451:2b4e:6e30 with SMTP id s9-20020a056402520900b004512b4e6e30mr14156521edd.380.1663040606731; Mon, 12 Sep 2022 20:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663040606; cv=none; d=google.com; s=arc-20160816; b=JE63NctxXzDN1moLRXJEbK/t2zF0ZT9/ZhaseT+WwieBpPaCqepmEjt4VI7anHdZ4t yFuZHJ9uBsWIiXwVjbFgTNL/l9bHzRx/IEw0eKgBGohc8RTfkujYyT2evxKy6sKAWhd2 WkEhnDBQLpMi0V4T8sXbLQt1VmNwTkZ/JNPF9LMPS+mYSlbf670Ve6VYcreHpsouPfaD 5OzcFhPPk8CeJZTwhuE0Yj/k260oQO3nn9HPJA2oAPiTRW451cNvRPTX44QH7hsmY+/6 DsSGPVhOyEpGLnFlweTvP39+G7cNUt/ALumZHMwu27kdeLkRnyrEI19C3SxuRO6SWk84 XV/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=tYWX1pU6L8bNwcswzIJzNJ9drDlUTZQ+2QuTBKmKchk=; b=o4cZtXLlwOUoDuWSPp+wI5iY4mpBGSuhw65hoZaw/1x3S1SnPodvve/Swz2oINFZBq 6MNszNnt5Vc2Df6NegRxBz+wgDFchuMsUA00dGlMjlHXJE5kzLsR9M8bTYrgffFv4AUx njGp9wdylnAUHFUwq7SVxC9HnfRct1aovev3XzSUL7hqwV4utMAWoVUllmnpOa6AmQku jx1FSJXec9DoL4egoKrinYnWeZzPiy57Y/5WqGZZEtcJcUJ9j+S4hkpJlx9n9fsYEaR1 PWOPKpQCnMmTuv0TL7v1CRCYEdAPANIkS8cVWca0vxEGikbbhUwVNo3DnpzYa5Lg6tM4 MdiA== 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 dn4-20020a17090794c400b00730632d2a0fsi9077801ejc.452.2022.09.12.20.43.01; Mon, 12 Sep 2022 20:43:26 -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 S229677AbiIMDOI (ORCPT + 99 others); Mon, 12 Sep 2022 23:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbiIMDOG (ORCPT ); Mon, 12 Sep 2022 23:14:06 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 181D5543C8 for ; Mon, 12 Sep 2022 20:14:05 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MRT3f5DjszlVpG; Tue, 13 Sep 2022 11:10:06 +0800 (CST) Received: from [10.174.177.76] (10.174.177.76) 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.31; Tue, 13 Sep 2022 11:14:02 +0800 Subject: Re: [PATCH 03/16] mm: remove obsolete macro NR_PCP_ORDER_MASK To: Matthew Wilcox CC: , , , , References: <20220909092451.24883-1-linmiaohe@huawei.com> <20220909092451.24883-4-linmiaohe@huawei.com> From: Miaohe Lin Message-ID: <075c234a-87bc-b479-366d-6bfc2731b3d5@huawei.com> Date: Tue, 13 Sep 2022 11:14:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 On 2022/9/10 3:37, Matthew Wilcox wrote: > On Fri, Sep 09, 2022 at 05:24:38PM +0800, Miaohe Lin wrote: >> Since commit 8b10b465d0e1 ("mm/page_alloc: free pages in a single pass >> during bulk free"), it's not used anymore. Remove it. > > Yes, but this patch needs to go further. The comment is no longer true > (after the patch you mention), so need to also delete these lines: > > -/* > - * Shift to encode migratetype and order in the same integer, with order > - * in the least significant bits. > - */ > -#define NR_PCP_ORDER_WIDTH 8 > > and the line: > - BUILD_BUG_ON(MAX_ORDER >= (1< Agree. Many thanks for pointing this out. Will do it in next version. Thanks, Miaohe Lin > > . >