Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8279738rwn; Wed, 14 Sep 2022 11:45:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR4xbpEzgbkIAZt0heE5LKpCrINYiWolT+roqVJFl6Jpe8gNz3s3bbfkNx6njmMy5/mb1rPB X-Received: by 2002:a17:906:794c:b0:77f:dc54:f856 with SMTP id l12-20020a170906794c00b0077fdc54f856mr7182438ejo.104.1663181113771; Wed, 14 Sep 2022 11:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663181113; cv=none; d=google.com; s=arc-20160816; b=tgoZpc1VnyjcTs0syGUxUM1fo9jpzhJqVXCbLaT4BWtPijd6vkD/SiwQobLsko8e4u zeFPuR1ljfkWwMpw6ttrj8Q5Bmlp51WP42Bmw0gbn0DALTi4QpPltNEXFRMjebwCEwJK VeMYGiKrX0dAFRSRi8WA7v1ZpwECpBTobzKvMMwo0Goo/jSv7/wxQSKiK/oIwZexE/7z 03MPmx1V4mGRUa3IRJXhhZv7AMxH5g2560QBzIkak9X3z7JkkCnK5aAuDT2AlM5+t0OQ wN2BqivqRln8pL8egHx1NxX2ZUAXcH4A+6N13SuZd7402YaPRDMMZPF15s0GM+F+AcAJ Cfrg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WjMZGzYufgkaFBGkncPcHR+U2yJZ8jvUo+lt6v372ok=; b=L5kGR9wYIyOHEk21Z9WQeHILO7VXmYv562TBi5ZHcpVDE8dDKJFsyF6K0/vd0H6xxW DKOinRPUT2FVZNywMu7QQ6/b/M/OMpqTlF7dNSLp8OVLKLJT+zZRa4rAp9v670oU0COm YLzuwcabqPDYPErFlua8cMhur1TGeDIpW14UMRvexatm9owJI70FCmZ/R62CnPK6Ehwn cRimK0vLps98t/PU15vo5nDvbjEyzMt1tAjy3pOiJeVZYQbc2XYnBZcjjqesuIOqUdra iLHmd3Z+5TSCqVVELXkNQjvNwxcrOE3SeX+YCI+dsPGy6MqGk/sg/EOj43Z5Ssp4Nw2O umug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EsHCSiUb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a056402519000b00447a7af56b2si14542830edd.326.2022.09.14.11.44.45; Wed, 14 Sep 2022 11:45:13 -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=@kernel.org header.s=k20201202 header.b=EsHCSiUb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbiINSJe (ORCPT + 99 others); Wed, 14 Sep 2022 14:09:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229964AbiINSJa (ORCPT ); Wed, 14 Sep 2022 14:09:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F0561EC; Wed, 14 Sep 2022 11:09:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EB8ABB81C58; Wed, 14 Sep 2022 18:09:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D4A6C433C1; Wed, 14 Sep 2022 18:09:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663178963; bh=2Vax29sc4ZSisv5YCVSdfRKAOSq8E9/1iuj8XUbl3q4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EsHCSiUbI1qgnhHLG1idfk2LDZW2y5wlqq6RPLuRhkUqSCQMq+p4V4JwgDebH8jRr G216o+in0R2PwpYVv0Ahu6rocVSQKRLzRzp8k4P9ID0paeQG6E+kPASeuHviWCcEJl wjeygFcKi5tqn2JxkSALd+OUvmimqXQSiOVyjgM34Mkds0vqv/OIxY+j5DC9h3Prhd qgAQwISbu49tOwm2TM1MvscXv0XeQzeBr0JCOd9BrYQBwM8eacE3NC3k3SDnXXn2s5 iaYs/AxvyINJcFiiA4wam7OY/4BjEUyId+EAUgDGwISSBFGZmI5RnF07YdGxtcMxuC p6Znf0+j3vh+w== Date: Wed, 14 Sep 2022 11:09:23 -0700 From: "Darrick J. Wong" To: Shiyang Ruan Cc: dan.j.williams@intel.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, nvdimm@lists.linux.dev, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, hch@infradead.org, david@fromorbit.com, jane.chu@oracle.com Subject: Re: [PATCH v8 0/3] mm, pmem, xfs: Introduce MF_MEM_REMOVE for unbind Message-ID: References: <9e9521a4-6e07-e226-2814-b78a2451656b@fujitsu.com> <1662114961-66-1-git-send-email-ruansy.fnst@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Sep 07, 2022 at 05:46:00PM +0800, Shiyang Ruan wrote: > ping > > 在 2022/9/2 18:35, Shiyang Ruan 写道: > > Changes since v7: > > 1. Add P1 to fix calculation mistake > > 2. Add P2 to move drop_pagecache_sb() to super.c for xfs to use > > 3. P3: Add invalidate all mappings after sync. > > 4. P3: Set offset&len to be start&length of device when it is to be removed. > > 5. Rebase on 6.0-rc3 + Darrick's patch[1] + Dan's patch[2]. > > > > Changes since v6: > > 1. Rebase on 6.0-rc2 and Darrick's patch[1]. > > > > [1]: https://lore.kernel.org/linux-xfs/Yv5wIa2crHioYeRr@magnolia/ > > [2]: https://lore.kernel.org/linux-xfs/166153426798.2758201.15108211981034512993.stgit@dwillia2-xfh.jf.intel.com/ Just out of curiosity, is it your (or djbw's) intent to send all these as bugfixes for 6.0 via akpm like all the other dax fixen? --D > > > > Shiyang Ruan (3): > > xfs: fix the calculation of length and end > > fs: move drop_pagecache_sb() for others to use > > mm, pmem, xfs: Introduce MF_MEM_REMOVE for unbind > > > > drivers/dax/super.c | 3 ++- > > fs/drop_caches.c | 33 --------------------------------- > > fs/super.c | 34 ++++++++++++++++++++++++++++++++++ > > fs/xfs/xfs_notify_failure.c | 31 +++++++++++++++++++++++++++---- > > include/linux/fs.h | 1 + > > include/linux/mm.h | 1 + > > 6 files changed, 65 insertions(+), 38 deletions(-) > >