Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2156514iof; Tue, 7 Jun 2022 21:38:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzL47wWyRfCMfEpcN3G/WlLBkcywc38YVXy1sRu06dxNZXG0mhhDINfvQeVb8TA5uihqxOd X-Received: by 2002:a17:90b:3841:b0:1e2:f16a:a117 with SMTP id nl1-20020a17090b384100b001e2f16aa117mr55194589pjb.130.1654663133631; Tue, 07 Jun 2022 21:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654663133; cv=none; d=google.com; s=arc-20160816; b=RB6ixQvXvQLDLSwO6DjaC/RJt1ldFC0JlrxhhoLemRCEldxFiAFeRtX2jvGYCrB2/8 tV4rlo8W+sNCreStkvXcxVe4VvjaJApBL/OT/HzmQ20Ae7Hf/XxkR0Ie6ihUHR2TNQNp Er+V15AUQDJjrBo6p8les637kFSEPeR959I+6zFz5+if6Js4Qp24ZO+dSKH+NyHspJGF +xLB/DW8zljzlWi1cfnf6gDtsP4uBkFBtDwhr55Wts6ddDCvzm5wMY/TLv5LG6suEe+z ofZJcWc1ORdrEq0+fcp4x27ikXBJ4+ryKCFtvt2WQ22A6rw6faeLBBzHRViB4oJY1/LH GSLg== 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=kIeoNALdguR3aN7GKFEd9K9npyp4og2Qegkqr3lDxJQ=; b=0OCLaI0s0vNbWLMH6E1b01cX1uBbCrmMvkL/gViiDKHQpUGEGIf31mY9VXx5loopxr OaGNfVZGG6VGbdy/TwO5TEIOwf9496V9JLQSXXdK6yyLANt34DA5UWAqWRXPrRYNM1cQ ZEqdTxYE2dCpqSk4vSV2moB+4RN9Yn5jzCOv/7NStPf7UCJKfAbkfihcaLzZs7hWUfUv 9bDgcuG7gVmuiMpqHR7+TA60bZushojk97V/9+uoKUHFO/ie8i3fFVBAJ6aROmRAvC8L 8N5i32wtGZQHYQLGlKirkzECYShRy0WwIguAjFVNFDOXDHdVLq++YKBZ8MLyKc+aK1hu mmhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ya1jsPoW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x7-20020a170902ec8700b001649cfacec6si29850583plg.10.2022.06.07.21.38.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:38:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ya1jsPoW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 09CA5192259; Tue, 7 Jun 2022 21:06:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237937AbiFGHx3 (ORCPT + 99 others); Tue, 7 Jun 2022 03:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237996AbiFGHxX (ORCPT ); Tue, 7 Jun 2022 03:53:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E84375799B for ; Tue, 7 Jun 2022 00:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654588400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kIeoNALdguR3aN7GKFEd9K9npyp4og2Qegkqr3lDxJQ=; b=Ya1jsPoWKA1hNsjlyikiBLTgftNRn5qSlkvz2+jsWq78B61SiCkEi7v5Epphx9Y4pC9/ax f75Gdc1PcvflWUwH3GJfdfWa4d7AmxescOWBCVSkPdckSp+Cea1gs0OippiMSG/II7uELk aXWqJ1AcsO7Q3cCBggrQsw1GBfnV5QU= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-600-nAeEfYI2Mluw13Zq_E6HMQ-1; Tue, 07 Jun 2022 03:53:15 -0400 X-MC-Unique: nAeEfYI2Mluw13Zq_E6HMQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A56A73C0CD44; Tue, 7 Jun 2022 07:53:14 +0000 (UTC) Received: from localhost (ovpn-13-113.pek2.redhat.com [10.72.13.113]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E6B47405D4BF; Tue, 7 Jun 2022 07:53:13 +0000 (UTC) Date: Tue, 7 Jun 2022 15:53:10 +0800 From: Baoquan He To: Christoph Hellwig Cc: akpm@linux-foundation.org, npiggin@gmail.com, urezki@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] mm: ioremap: rename ioremap_page_range() to ioremap_range() Message-ID: References: <20220606083909.363350-1-bhe@redhat.com> <20220606083909.363350-6-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 06/06/22 at 10:27pm, Christoph Hellwig wrote: > On Mon, Jun 06, 2022 at 04:39:09PM +0800, Baoquan He wrote: > > Because the current ioremap_page_range() only maps IO address to kernel > > virtual address, no struct page pointer passed in or page handling related. > > So rename it here. > > > > The renaming is done with below command: > > sed -i "s/ioremap_page_range/ioremap_range/g" `git grep -l ioremap_page_range` > > This creates a lot of churn without much of a benefit. If you want > to get rid of the name please convert most architectures to the > generioc ioremap code first so that all these callers go away.. Thanks for checking. Yeah, I didn't manually adjust those indentation after replacing via command. While the name of ioremap_page_range() is misleading, relative to its implementation. Converting to use generic ioremap code on most of architectures sounds like a good idea, just like what the arm/arm64 converting patchset is doing. From a quick look, not all places can take the converting, and there's one in pci_remap_iospace() under drivers. So what I need to do is to: 1)take back this pach; 2)convert as many architectures to the generic ioremap code as possible; 3)rename the left places of ioremap_page_range() to ioremap_range(). Please check if this is what you are suggesting. Thanks Baoquan