Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6714001iob; Wed, 11 May 2022 03:53:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQse86URMYuMzIYEXnfHMvGNQ/nqRJmNplnRDjdUw61a/2zKP3vmgfaxSgNNQnVtmEgzTt X-Received: by 2002:a17:902:b7c9:b0:15f:2d65:7d3b with SMTP id v9-20020a170902b7c900b0015f2d657d3bmr4715240plz.149.1652266405906; Wed, 11 May 2022 03:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652266405; cv=none; d=google.com; s=arc-20160816; b=qjzZO0qmTdtOXYluD9Pn7JDXzm80QTYP/zpHE4sPLBRJpZyG7F0bU36OWy48O6s5vH bjM+CLFp6b75Tf/TqAYiktdLiCbWwFB4zAXMz//vdYAY8Oc3K4afBmD4WizGrNRdXKVX EaqJ82uz92u7rnpXFDTRTf0M6YeVkFyZa0bl6k+vVZrsi2l42NZ8wWSEeWbEgNy1baQ8 zy0ThL5LI/OHFJ2TROU4hglj4c+NNHyaSpvfXmoj7bYpSf8HnhT09mecyoQpwbyCOb9z BT5ixK65tHK1DffyuFFkW7zxIyV+bY4uIXAFsTyARiD7giB9D22hsRZFDRzyl++g+bez CkHQ== 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; bh=CzjTVcjxlu0wX9y23Zo0fWjWcmtucc80u5cDIQDgbI4=; b=kNj6JAWl8XscMM/GI+/QflrZsvYI1CoiK3C7Y9K3a23pNrEqqY7iSjzzC56jwEzFRn eO7LqEl+dv5l5wzC7QPnhZXLCXKPYl2k1kMAnNJmobssiK+1cgViYgcupn29uyFBeXDY qYh6soMutL/jCJpzxUJS4YeOCE6b/yq8O2IoFupFjxbYkCFnTJMbaZn5Dj9oPyCmHdqF p102zDUiL/9//mQUxHsOk5oYlgimZRo54Sze+/td3nySFqgWzt+4FU3ky2OGLVFI/ozJ 8l4LgdMI70HJLLJyHlnXxj1hyWggIv/5ogd4ecv9Y/+Yan4KSYeh/C6+WhbtoVJ2wtuG +05Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o35-20020a634e63000000b00382274f6ae9si2306410pgl.589.2022.05.11.03.53.08; Wed, 11 May 2022 03:53:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236495AbiEKGVi (ORCPT + 99 others); Wed, 11 May 2022 02:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232768AbiEKGVf (ORCPT ); Wed, 11 May 2022 02:21:35 -0400 Received: from mail105.syd.optusnet.com.au (mail105.syd.optusnet.com.au [211.29.132.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 102245DD3F; Tue, 10 May 2022 23:21:24 -0700 (PDT) Received: from dread.disaster.area (pa49-181-2-147.pa.nsw.optusnet.com.au [49.181.2.147]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id D9E8B10E6B15; Wed, 11 May 2022 16:21:20 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1nofip-00AaTy-9h; Wed, 11 May 2022 16:21:19 +1000 Date: Wed, 11 May 2022 16:21:19 +1000 From: Dave Chinner To: Andrew Morton Cc: "Darrick J. Wong" , Dan Williams , Shiyang Ruan , Linux Kernel Mailing List , linux-xfs , Linux NVDIMM , Linux MM , linux-fsdevel , Christoph Hellwig , Jane Chu , Goldwyn Rodrigues , Al Viro , Matthew Wilcox , Naoya Horiguchi , linmiaohe@huawei.com Subject: Re: [PATCHSETS] v14 fsdax-rmap + v11 fsdax-reflink Message-ID: <20220511062119.GI1098723@dread.disaster.area> References: <20220508143620.1775214-1-ruansy.fnst@fujitsu.com> <20220511000352.GY27195@magnolia> <20220511014818.GE1098723@dread.disaster.area> <20220510192853.410ea7587f04694038cd01de@linux-foundation.org> <20220511024301.GD27195@magnolia> <20220510222428.0cc8a50bd007474c97b050b2@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220510222428.0cc8a50bd007474c97b050b2@linux-foundation.org> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.4 cv=deDjYVbe c=1 sm=1 tr=0 ts=627b55e4 a=ivVLWpVy4j68lT4lJFbQgw==:117 a=ivVLWpVy4j68lT4lJFbQgw==:17 a=kj9zAlcOel0A:10 a=oZkIemNP1mAA:10 a=VwQbUJbxAAAA:8 a=QyXUC8HyAAAA:8 a=omOdbC7AAAAA:8 a=7-415B0cAAAA:8 a=37abNmnZhWSmtZz8jCkA:9 a=CjuIK1q_8ugA:10 a=AjGcO6oz07-iQ99wixmX:22 a=biEYGPWJfzWAr4FL6Ov7:22 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,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 Tue, May 10, 2022 at 10:24:28PM -0700, Andrew Morton wrote: > On Tue, 10 May 2022 19:43:01 -0700 "Darrick J. Wong" wrote: > > > On Tue, May 10, 2022 at 07:28:53PM -0700, Andrew Morton wrote: > > > On Tue, 10 May 2022 18:55:50 -0700 Dan Williams wrote: > > > > > > > > It'll need to be a stable branch somewhere, but I don't think it > > > > > really matters where al long as it's merged into the xfs for-next > > > > > tree so it gets filesystem test coverage... > > > > > > > > So how about let the notify_failure() bits go through -mm this cycle, > > > > if Andrew will have it, and then the reflnk work has a clean v5.19-rc1 > > > > baseline to build from? > > > > > > What are we referring to here? I think a minimal thing would be the > > > memremap.h and memory-failure.c changes from > > > https://lkml.kernel.org/r/20220508143620.1775214-4-ruansy.fnst@fujitsu.com ? > > > > > > Sure, I can scoot that into 5.19-rc1 if you think that's best. It > > > would probably be straining things to slip it into 5.19. > > > > > > The use of EOPNOTSUPP is a bit suspect, btw. It *sounds* like the > > > right thing, but it's a networking errno. I suppose livable with if it > > > never escapes the kernel, but if it can get back to userspace then a > > > user would be justified in wondering how the heck a filesystem > > > operation generated a networking errno? > > > > most filesystems return EOPNOTSUPP rather enthusiastically when > > they don't know how to do something... > > Can it propagate back to userspace? Maybe not this one, but the point Darrick is making is that we really don't care if it does because we've been propagating it to userspace in documented filesystem APIs for at least 15 years now. e.g: $ man 2 fallocate ..... Errors ..... EOPNOTSUPP The filesystem containing the file referred to by fd does not support this operation; or the mode is not supported by the filesystem containing the file referred to by fd. ..... Other random examples: pwritev2(RWF_NOWAIT) can return -EOPNOTSUPP on buffered writes. Documented in the man page. FICLONERANGE on an filesystem that doesn't support reflink will return -EOPNOTSUPP. Documented in the man page. mmap(MAP_SYNC) returns -EOPNOTSUPP if the underlying filesystem and/or storage doesn't support DAX. Documented in the man page. I could go on, but I think I've made the point already... Cheers, Dave. -- Dave Chinner david@fromorbit.com