Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3236706rwd; Mon, 29 May 2023 07:35:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4EdERXVFdbNWquzOEKTa8pqXxJSMwI+7qQMSD6bgzhitebCdAb5SLlP9um9SgE65df74fX X-Received: by 2002:a17:903:189:b0:1aa:f203:781c with SMTP id z9-20020a170903018900b001aaf203781cmr13218728plg.44.1685370919964; Mon, 29 May 2023 07:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685370919; cv=none; d=google.com; s=arc-20160816; b=jTuuXSogX72ZM19TtY1L0LGqdj43yTLLIZAz8pGoQY8F44uLceomuPqvBS8sFMF7e3 wvQDT25hnJJVYtl4KzlCQbXfAp4x2LfqtdAMbeCQ4DNWiBB41YuvExcZLhxeN7jiE1zz 1X+ksfnk543M+Ke4lkQ9AnHhGoz7Tg8F+tpYFdLWXYjbsW6DVIDv7Dn4npWcvAG5SIMb WPik9/hb3VX38VsYe6ocQPbA+pfAfePLkzoE8KAs01xxq1HhunToBsUo5Gc9wRkiC8zN tib9pIx07qxh8S0MavXszD9nTvFcAtNNr/mMnryRbSx0Ip10yDW+rYWEelrfi7u0SOzK B0UQ== 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=JwR+VvEo7klsGIAN09oZ3+x143GWG+P2Mr6+8jvTA/c=; b=E/h2JCrysKxBn2CY8LO2UQi8YBNMwFNPB+1p44m8ZmFtlq5KidKxuD7r+kaaMTiaMP 0V6hOEnWdE41ZDargfowQpFuDzWoWr7UZLUq5l6g6sWCCJCrwF0ttQ27rX+vwYJQAAQL noQo0w/DG6JdTG02bVV3EUWDvfBR7qjvA9bTPmVIJ6xXpUYXGlSIM5zWlMb2zzyggGCQ QU6ThD9xzB/ORfRgaWyDV45AyiUinkJxFlgf9C21MPQ8FmKHxCCWy/cUSBi1D/4lA+yY l6ao4WpNII2ifjjSb6+1EH2868EZDFzxKpHOniu3kpi6PyVjA2VHoPmLIrp+ieAaGoBH b7Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=CpORWdNk; 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 p3-20020a170902bd0300b001ab18790b12si6090127pls.97.2023.05.29.07.35.05; Mon, 29 May 2023 07:35:19 -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=CpORWdNk; 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 S229822AbjE2O0b (ORCPT + 99 others); Mon, 29 May 2023 10:26:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbjE2O0Y (ORCPT ); Mon, 29 May 2023 10:26:24 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8067D8 for ; Mon, 29 May 2023 07:26:17 -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=JwR+VvEo7klsGIAN09oZ3+x143GWG+P2Mr6+8jvTA/c=; b=CpORWdNkf2JUeaRqYnYiCYBYl3 0U4mN6Aa7JLEiOKmbvdEXFj4ZrOzADYZVfHvLYVyAyxdgPzPWJuBg79sJj3SBm9uzxPsZNhwwaWts P/3UowknltxnqrlZHhwyzaPNfgZje2lXeNFLtwLPNAP9Z7z51uBc90xT2w1R4Za46B4DN3IjK56WX cL++p7C4OTxkQcjFYnmSqjOWZMW9XFvZZhpKlt8tUqYvfITlJJNAP9C8wiY94/mvEl6w68GrV5va8 nQOp4aWLlC9G/f1O7fIb4lDu2LHkRteWQznQS79utEufNISqlge4QADmcsU5dEMqLkXFTwie6sTZp vB8Vi9CQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1q3dp4-005TMF-OG; Mon, 29 May 2023 14:26:10 +0000 Date: Mon, 29 May 2023 15:26:10 +0100 From: Matthew Wilcox To: Kefeng Wang Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Baoquan He Subject: Re: [PATCH -next] mm: page_alloc: simplify has_managed_dma() Message-ID: References: <20230529144022.42927-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230529144022.42927-1-wangkefeng.wang@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 Mon, May 29, 2023 at 10:40:22PM +0800, Kefeng Wang wrote: > The ZONE_DMA should only exists on Node 0, only check NODE_DATA(0) > is enough, so simplify has_managed_dma() and make it inline. That's true on x86, but is it true on all architectures?