From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.133]:51610 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726169AbeJWEtz (ORCPT ); Tue, 23 Oct 2018 00:49:55 -0400 Date: Mon, 22 Oct 2018 13:29:53 -0700 From: Matthew Wilcox To: Amir Goldstein Cc: Olga Kornievskaia , Al Viro , linux-fsdevel , Linux NFS Mailing List , fweimer@redhat.com, Steve French , "Darrick J. Wong" , Christoph Hellwig , linux-api@vger.kernel.org Subject: Re: [PATCH v1 02/11] VFS permit cross device vfs_copy_file_range Message-ID: <20181022202953.GA20085@bombadil.infradead.org> References: <20181019153018.32507-1-olga.kornievskaia@gmail.com> <20181019153018.32507-2-olga.kornievskaia@gmail.com> <20181020040530.GG32577@ZenIV.linux.org.uk> <20181022190620.GA8863@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Oct 22, 2018 at 10:48:10PM +0300, Amir Goldstein wrote: > On Mon, Oct 22, 2018 at 10:35 PM Olga Kornievskaia > wrote: > > So remove the check all together for the VFS (that was my original > > patch to begin with (like #1 not this one). So am I missing the point > > again, I keep getting different corrections every time. > > Because there are different opinions... although you did get the opinion > of the VFS maintainer, which was: compare i_sb->s_type. > > Jeff, Matthew, really, what's the use of "allowing" cross fs type copy inside > filesystem code? and which method is going to be called? > file_out->f_op->copy_file_range()? > file_in->f_op->copy_file_range()? The destination's method, as Olga originally had. > Do we need to check if both are implemented? either? > This is just confusing Olga and gives no real value to anyone. > If we ever have a filesystem copy_file_range() method that can deal > with cross fs type copy, we can change it then when we know the > required semantics of that future call. Wrong. Go back and read my reasoning earlier this thread. > That is not to say that we cannot relax same fs type from copy_file_range() > syscall. That has already been done with the current patch, just not officially > declared in commit message. > > Thanks, > Amir.