Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2418517rwn; Fri, 9 Sep 2022 13:28:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR732DAWng8Hm8JQsAZjhQa+hmpRDmbr8Abrv+HksRNoksOPC6CMeqsSgmpokO2F+lpsJQE6 X-Received: by 2002:a17:907:3e81:b0:726:9615:d14d with SMTP id hs1-20020a1709073e8100b007269615d14dmr10812610ejc.517.1662755320705; Fri, 09 Sep 2022 13:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662755320; cv=none; d=google.com; s=arc-20160816; b=dylS/LRvcrAhLpRvDhFlZPB+8JM+u+hAZVsop2okgoiblRh5vRzCypni1IyUpKsUAi 8JOSfXbTKnU7aCU945jVpKwXBs559Eeo3Mx1j2lbPZKpM93WJVv2V9hlZ6iNfLuE8HDx YeE6pPkVEkLoH2tgfemWmvZDjXkuRn4VOGluZI9kp4509CZxshVoqeCexMGLr/FldOKL hWKfkqpRMjSY4qkb3ue2w74LePV9FTay/bHFm8ahi5PNztE1oVAVcPRZL9z8bKxGjiSs rU6gk8dcwKKT2ZN+D4Cel112abYqPgUGJJJLq1TBlRQZ1MxIWyrwqh3EIWhl7M0RgsMV WPSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kpoKyQoV4q4nCI29fW8HhVgzf02UIWYkeQLeEr7DdCc=; b=G5DP8YlPlxk2pWn1/OsDiXHv3gIxQZup0KE3yW4zEzYeHUUiza7fLySZl5xtVfN51I zrlzVOKK2QhIBaTFn2mQhkx9Q4V+FX46JSE+8iIYepSHe3QmEavAPfUGasiB1G0CnjrO zlpDmTeJ32+W9MzCDpEUFhgOJiBTaDJu+0eK2wPKsar8126PJ+rBMhrAKrlr+1eOJPOl sqdZ1QZT/MQN/sMHR0v0DPqttpHyKxkKd5hvjM+MHsvBvf3nFsyokV0dEuFE1hAIHvfv wdMFyE5Qo1BmVOf1+AKByEF9FFqig62hb8ssi/+mEbCsvS2GthZIb94MT2BjEFeRe2Sd dIrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nwfYVX1G; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga30-20020a1709070c1e00b00738340201b8si1297166ejc.121.2022.09.09.13.28.14; Fri, 09 Sep 2022 13:28:40 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nwfYVX1G; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231944AbiIITkz (ORCPT + 99 others); Fri, 9 Sep 2022 15:40:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbiIITkc (ORCPT ); Fri, 9 Sep 2022 15:40:32 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7D9A14670B for ; Fri, 9 Sep 2022 12:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kpoKyQoV4q4nCI29fW8HhVgzf02UIWYkeQLeEr7DdCc=; b=nwfYVX1GzyoWxH8Fna2Ws7mr26 5B4gbZ5Z45mgPdt8mUSRmXvcKite7R6kmdjRcT7RwYuft+HvZEc9HGCxZB1KU3iGWi30+jK+v4Gd1 BgRajWnmLpL5+HlPGIOFrBtQIhGvfcLaNdPTbWo8lYkA8tRdCIVu8h2i0M/sGuk+M08dCYAgHaE2S kJ68VVJrBkTA5/86h8LFh+sOeteYXduocPK5IGHoMDexELGF62bNJJKKRadmXgAvwJsSu3pjnc1uD mQwM5Jof8mXtuHXtAMesy5J75dO7bCiHx7bXTxnKaDqUFns2xXZRqFwL8QyPit/z7VkMWAyhWnfqQ +E490VfQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWjod-00DVvN-8Y; Fri, 09 Sep 2022 19:37:27 +0000 Date: Fri, 9 Sep 2022 20:37:27 +0100 From: Matthew Wilcox To: Miaohe Lin Cc: akpm@linux-foundation.org, david@redhat.com, osalvador@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/16] mm: remove obsolete macro NR_PCP_ORDER_MASK Message-ID: References: <20220909092451.24883-1-linmiaohe@huawei.com> <20220909092451.24883-4-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909092451.24883-4-linmiaohe@huawei.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 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<