Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2224169pxb; Wed, 30 Mar 2022 19:53:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS9mCEpuIUrAp78rjnPrT8zGybCd7/x2WKymPfeT2y0E7ogBbotaLxc1Byk91HwHo2avRF X-Received: by 2002:a17:90a:5913:b0:1c7:2b71:65d8 with SMTP id k19-20020a17090a591300b001c72b7165d8mr3398863pji.87.1648695211129; Wed, 30 Mar 2022 19:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648695211; cv=none; d=google.com; s=arc-20160816; b=DiQcvY8YCQX0i5Ig1u0k/6O9RCYQY0QebPrLfHJtVofo3uhkmfb9/IukVSI4ntblBS bSPQ5A0gAd0M6i0N1pCtzii9asRykcyxvaKSQVwmEkBnIIK7UyiqLy2fRc+ZBqMnRAmM 45Jp+TGVURfx84PCkTQOmKzXqpi4PE9JjXGtw8FRH/rpByUTNBZwgf92Xd9IqVxC8Bxw o6ezOGWcCPjUdINOzcs8nTdmsT2ign+wZs5q8CuY5d/BbHATgeU86Npy00/Kh0a+ufvD 6jBP03pbYleWZHSQ1F4i0oIJJi4YUBNvnA/uqv6zXk5c9q7HXwsZ/nKSwPMWfyupbrJ9 Cm0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fjTDi9n/uLRqxVKGGOaPNySXftZQ6axRJXtPfIo5LUI=; b=vHEwFUQ5BpxYe+6ofQgDKkdtqmt5cgN4EVsi3bsRg9bk+fWxNsmI4AljMumv/H6Q+r LPuBmY2z6i2D+nMDynSKjkCcBys4aR99o56i+zjRc1eNVfYb5Xy9mogHKFOrvQNyttGP dLDo7zN3fzLg2qhkQs30ns03aPOYnqXfTUSRUn+WhyhDkHzFopG2nzcjmgoHzRfCPx6G DcZ/zM52JW6um/2p+eUlsurj/NDoLp9Y7o/T+TwzKrXsxDHuTGaGVsx0+D2E/LvLt+qx lqY/xj6uDoWwp0pcf1SGG2zS4pnKj+NBuQI+GvW7LRRI68omwI+lv9NDHOUF+iGTxytb IsbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=oy0ldmBj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y14-20020a63e24e000000b003816043eeb3si19760040pgj.168.2022.03.30.19.53.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 19:53:31 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=oy0ldmBj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D4102CD319; Wed, 30 Mar 2022 19:39:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243834AbiC3HeJ (ORCPT + 99 others); Wed, 30 Mar 2022 03:34:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243842AbiC3HeF (ORCPT ); Wed, 30 Mar 2022 03:34:05 -0400 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E91D2042B9 for ; Wed, 30 Mar 2022 00:32:14 -0700 (PDT) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-2db2add4516so208972907b3.1 for ; Wed, 30 Mar 2022 00:32:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fjTDi9n/uLRqxVKGGOaPNySXftZQ6axRJXtPfIo5LUI=; b=oy0ldmBjJZfRyL+iZuZ5FQ/Inj2N4hflGyxVltzKvGdTjhOYfkFX8SjWEA2uOlOnz3 AKOfxviF2B7L+/oZuIvzhkjT00ZrJliFLYhLF5UqAOo0/bMIjxjKCLujhnabL6gKCGgO 6MdTSmLe+CDGS2g1FopXywQUJWfY5c6avaXqJbsJKiYkTBJ/0avOJLEK3cVY8YflI3R9 9ZHjM2AsS6qJf+rw0uC4YVZdhi463GG9MmJXC5ZHSj13srAq2ZRVFVYkCDQ6zhypRruU I5qQRa/lQIUTWj8p7n28JUDfMbQT8CfQr4x1Gd54i7/6CAtDTanLGOYFGb9GZwXKSAon h4YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fjTDi9n/uLRqxVKGGOaPNySXftZQ6axRJXtPfIo5LUI=; b=Hqn+kcqxj81hu0tzpXZEMzYEzBZMpb8XPQNSEB/IEwwDpYxx4rtS39oDPkYr0OPhQt TMvEmX/KYrRLNOs6/6lzaZW8tjlfx6Mpil64vWWQKiDDHGdWf6zm9PQ/7sOOGSQB+z8z dv3SlsW2qeJcVNL5Ie8eX+FD833ADYT3L8W8grBED1xGGp0GGF9LhFJ/E+1PPOo5L3Oy poF8hhcyebGBUKgMVJh+vhDVclO0ozkNi0UfS1xPowRm+94GjBS4thVpSmtioPOxwqYX rqvED0lBikgk6iLkXebN6iJTUE84zi9wJuGBFLFwnNmlFRu0SVhPpDutST1PSAM9QAZW z+xA== X-Gm-Message-State: AOAM532f1bqJTsPVZjjJ8MxOfqytW+a2xzQ9xlhzUI0x3XmR8dt84KKl 77BNpQn/XWV90FoXdmtNdMXLA9OYRBZs79U/PmPfNg== X-Received: by 2002:a81:897:0:b0:2e5:f3b2:f6de with SMTP id 145-20020a810897000000b002e5f3b2f6demr35325738ywi.141.1648625533474; Wed, 30 Mar 2022 00:32:13 -0700 (PDT) MIME-Version: 1.0 References: <20220329134853.68403-1-songmuchun@bytedance.com> <20220329134853.68403-4-songmuchun@bytedance.com> In-Reply-To: From: Muchun Song Date: Wed, 30 Mar 2022 15:31:37 +0800 Message-ID: Subject: Re: [PATCH v6 3/6] mm: rmap: introduce pfn_mkclean_range() to cleans PTEs To: Christoph Hellwig Cc: Dan Williams , Matthew Wilcox , Jan Kara , Alexander Viro , Andrew Morton , Alistair Popple , Yang Shi , Ralph Campbell , Hugh Dickins , Xiyu Yang , "Kirill A. Shutemov" , Ross Zwisler , linux-fsdevel , Linux NVDIMM , LKML , Linux Memory Management List , Xiongchun duan , Muchun Song , Shiyang Ruan Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Mar 30, 2022 at 1:47 PM Christoph Hellwig wrote: > > On Tue, Mar 29, 2022 at 09:48:50PM +0800, Muchun Song wrote: > > + * * Return the start of user virtual address at the specific offset within > > Double "*" here. Thanks for pointing out this. > > Also Shiyang has been wanting a quite similar vma_pgoff_address for use > in dax.c. Maybe we'll need to look into moving this to linux/mm.h. > I saw Shiyang is ready to rebase onto this patch. So should I move it to linux/mm.h or let Shiyang does? Thanks.