From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D621D83 for ; Mon, 4 Dec 2023 06:02:12 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 4220C227A8E; Mon, 4 Dec 2023 15:02:06 +0100 (CET) Date: Mon, 4 Dec 2023 15:02:05 +0100 From: Christoph Hellwig To: Amir Goldstein Cc: Christoph Hellwig , Christian Brauner , Jeff Layton , Josef Bacik , Jan Kara , David Howells , Jens Axboe , Miklos Szeredi , Al Viro , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 3/3] fs: use do_splice_direct() for nfsd/ksmbd server-side-copy Message-ID: <20231204140205.GA27396@lst.de> References: <20231130141624.3338942-1-amir73il@gmail.com> <20231130141624.3338942-4-amir73il@gmail.com> <20231204083952.GD32438@lst.de> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Dec 04, 2023 at 03:19:26PM +0200, Amir Goldstein wrote: > I tried very hard in this series to add a little bit of consistency > for function names and indication of what it may be responsible for. > > After this cleanup series, many of the file permission hooks and > moved from do_XXX() helpers to vfs_XXX() helpers, so I cannot in > good conscience rename do_splice_direct(), which does not have > file permission hooks to vfs_splice_direct(). > > I can rename it to splice_direct() as several other splice_XXX() > exported helpers in this file. Let's keep the name for now. do_ prefixes are not great, especially for exported functions, but no prefix at all isn't great either. So let's get your work done and then we can look into introducing a consistent naming scheme eventually.