Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8308334rwn; Wed, 14 Sep 2022 12:13:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4jKaYRgvKd0BYK6rjDkWW37Wl7zdK56p/6YnZ7bwO72P1zxuiQAAoQXju4paq3ziJE6FkD X-Received: by 2002:a17:902:db06:b0:178:24e7:639 with SMTP id m6-20020a170902db0600b0017824e70639mr498228plx.46.1663182791079; Wed, 14 Sep 2022 12:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663182791; cv=none; d=google.com; s=arc-20160816; b=ImjcNUyJ/oG/wKFZm+63u/fAu5gHluyQ0dYzlFuusIWmC80wnQPGWqYX6weJLEEAfB S1vEG5Fxhfr26uvIxybcf8kYvoSonK2fxGvQ97mOM4puxelmMDBgqnH9SSGWfFmaVAk+ 5ze81EaP2IbXZJdJHjXl1NBXF+pmTNJ5ex2dHhmg9SRQpY2bWTwqROcBRhdc9FyafDOK JAuDpzh0t28fvANsoJA6uGHtIMXNQzAerRM3ebdD7fouy/kfjIekUKLDC0V0pgwU9HzY cKgKz7agpKxo97Wgd6NEiNEJ7QAHmpzyZobQkCHBOUIMwMtCofavbI/ptbaFY9vhfTTy 5dTQ== 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=jyfvj7yY4trPI1bSP957K/7ipLEjIZg+47Ntxbc8V+E=; b=uNqvZDvKd4Pn3qVSlvN7toWPgxBcwhYbP61O7C46DhvogBnSL3azgM28mJHaY+39wO DZO8WbahppGuc4v9Y/LteaxmZvhcFNmNWHp5ssqFaim90710afIHXfc7DwLZSg7aMpS4 lBBe7POYJ8grSEy1FWocU3MD/202t/W1XYvNpEV8M0QB8IEAPxWQY+Sfxc7ma1Mc4nmN VZuIvO0eRd1caUpqd770BrAGbWKXP/HUH8uYJgAYXw4Rrg7Fg/fqJW8ch1qxiKj1GySf cE/7/xZO9UwIxGLoCeubdHaK+OZvLMOrgZRuhWQ8p2tfv40rhLRVw+qtEC5BaKogaNss TE3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jjsUjMzi; 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 g32-20020a635220000000b0043486074814si15723652pgb.661.2022.09.14.12.12.59; Wed, 14 Sep 2022 12:13:11 -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=jjsUjMzi; 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 S229629AbiINSP6 (ORCPT + 99 others); Wed, 14 Sep 2022 14:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbiINSPx (ORCPT ); Wed, 14 Sep 2022 14:15:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA5055E54B; Wed, 14 Sep 2022 11:15:50 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 28D0C61E86; Wed, 14 Sep 2022 18:15:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83430C433C1; Wed, 14 Sep 2022 18:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663179349; bh=Ko+zKlr4tgZrbS+NCSXs3PzkeSQ8QzQ9mJuBdNLc4Js=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jjsUjMzi8u7cakmNSl1c3gBFCKkTptb7b5WpGv0aj38GV8PHfD0BpAChZd6LDpt53 XoRIPex7CmHePPkDJo18e3d83foCgcmq+Aunu1CZF+z7cIssxB2BwqwTmaJoTR5vHI RIE1ySK4bJ4zxzFubCr9Pf3yTATnLkp5Nq7CqjC3nNAgDq55/X3HAbQp0RzAQxd05m 07yhzi+ZeittmH930j+SjB87I/a6evnbLTQZ99x627UWP8awc6rJfhUHrE5G/REjPv FQT3ytVmHGbuet+pgccVzPkJ0oHriL8Z278UI8VuvwqeL6z6CPOzAPrAkdj3pGvYat X5eScGQu2zvUg== Date: Wed, 14 Sep 2022 11:15:49 -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 14, 2022 at 11:09:23AM -0700, Darrick J. Wong wrote: > 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? Aha, this is 6.1 stuff, please ignore this question. --D > --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(-) > > >