From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:59951 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932772AbdA0Rvu (ORCPT ); Fri, 27 Jan 2017 12:51:50 -0500 Date: Fri, 27 Jan 2017 18:51:47 +0100 From: Christoph Hellwig To: Amir Goldstein Cc: Miklos Szeredi , "Michael Kerrisk (man-pages)" , Jan Kara , Al Viro , "linux-unionfs@vger.kernel.org" , linux-fsdevel , Christoph Hellwig , "Darrick J. Wong" Subject: Re: [RFC][PATCH v2 4/4] vfs: wrap write f_ops with file_{start,end}_write() Message-ID: <20170127175147.GB18919@lst.de> References: <1485174742-15866-2-git-send-email-amir73il@gmail.com> <1485200596-14057-1-git-send-email-amir73il@gmail.com> 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 Fri, Jan 27, 2017 at 07:29:00PM +0200, Amir Goldstein wrote: > Christoph, > To your understanding, is it correct to add the IS_REG check in > vfs_copy_file_range()? Yes. The only thing that could maybe make sense would be block devices. But I'd prefer to only add then on an as-needed basis.