Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3101325pxb; Thu, 10 Feb 2022 12:15:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8/rjy9H4GkgPq92lJvjcMceTL7xvEheso7uWxFNQoSRAlrH8ySpjfvQ4lqormfenEDo0a X-Received: by 2002:a17:906:99c5:: with SMTP id s5mr7718323ejn.190.1644524135804; Thu, 10 Feb 2022 12:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644524135; cv=none; d=google.com; s=arc-20160816; b=uHpybWE6++ofWvIVEwOs9WpWwdqYPgdMojwMB48bOkpMPQy73XeNU9kJSrb5pYgiGa yWnbSo0AeCv7lB5IvCf/Ibfcki2pXwAFeFYyPuSiugI/XjEo1xPKewERAXmqSl38kn83 qMO0cplyP1WBujZtDbNwhfK5rWCpiSs+J3I7UXsRBNzkQlMjAvQtvFYquYcRPpSDs66C /WTadkLhKZdnM3cSXqGFCzx2hT+VWgNc+L587+fqPF1znCtpemYKHNkAfnHEt35rVzYr I+SZbh5TXbLTHj6voz1//7IXOqFobzi4kSCCual12jcQITDHHehTTHjwwAWQY8qYmBMU 6YSQ== 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=srbRCgMbN3bTlMk/M+7YrXTwOYfqGWpZXlW9V/XNaaw=; b=pyj3fj+yS3uvjRc4qjpw8LdZnA+m7AIDD+ktpQe/Wi1RcZVIeeF0iZbZzJI5siEfVB AfA6OXR0dFyAi7apbdpvCZfWK+MmKSQ68bAtIwakps8WVONAhMKOpDc9Uk76hlrgmPv9 IHIgoHrWskIoIieqFFW/AzrTqYEylT6FNjPvjYuGYFINKNxcKf61AX/JPBD33vUV35Nm oIcCVdcOtxkZtYm7y9dl9/lKnDkIJ9jqsiIcuFpoSKNKjSV5PI0oIWBbkYRZdmwLWP6f h99N4r0I4lg8NYTVqsWjcA/Funzrlw+pwzvApDIkRGLvTxk0yByOcHIdPR0ykj/f+0Ze g0SA== 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 m18si6885261edd.154.2022.02.10.12.15.10; Thu, 10 Feb 2022 12:15:35 -0800 (PST) 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 S241022AbiBJLh3 (ORCPT + 99 others); Thu, 10 Feb 2022 06:37:29 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235635AbiBJLh1 (ORCPT ); Thu, 10 Feb 2022 06:37:27 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C9F81001 for ; Thu, 10 Feb 2022 03:37:28 -0800 (PST) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4JvZT42pQKzcckG; Thu, 10 Feb 2022 19:36:24 +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.2308.21; Thu, 10 Feb 2022 19:37:24 +0800 Subject: Re: [PATCH 01/27] mm: remove a pointless CONFIG_ZONE_DEVICE check in memremap_pages To: Christoph Hellwig CC: Felix Kuehling , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , Ben Skeggs , Karol Herbst , Lyude Paul , Jason Gunthorpe , Alistair Popple , Logan Gunthorpe , Ralph Campbell , , , , , , , Jason Gunthorpe , Chaitanya Kulkarni , Muchun Song , Andrew Morton , Dan Williams References: <20220210072828.2930359-1-hch@lst.de> <20220210072828.2930359-2-hch@lst.de> From: Miaohe Lin Message-ID: Date: Thu, 10 Feb 2022 19:37:24 +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: <20220210072828.2930359-2-hch@lst.de> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) 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,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/2/10 15:28, Christoph Hellwig wrote: > memremap.c is only built when CONFIG_ZONE_DEVICE is set, so remove > the superflous extra check. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Logan Gunthorpe > Reviewed-by: Jason Gunthorpe > Reviewed-by: Chaitanya Kulkarni > Reviewed-by: Muchun Song > Reviewed-by: Dan Williams > --- > mm/memremap.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/mm/memremap.c b/mm/memremap.c > index 6aa5f0c2d11fda..5f04a0709e436e 100644 > --- a/mm/memremap.c > +++ b/mm/memremap.c > @@ -328,8 +328,7 @@ void *memremap_pages(struct dev_pagemap *pgmap, int nid) > } > break; > case MEMORY_DEVICE_FS_DAX: > - if (!IS_ENABLED(CONFIG_ZONE_DEVICE) || > - IS_ENABLED(CONFIG_FS_DAX_LIMITED)) { > + if (IS_ENABLED(CONFIG_FS_DAX_LIMITED)) { > WARN(1, "File system DAX not supported\n"); > return ERR_PTR(-EINVAL); > } > LGTM. Thanks. Reviewed-by: Miaohe Lin