From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="QR0nIZbC" Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E6CCA2 for ; Wed, 22 Nov 2023 23:47:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kMpCBGIKmxfwNE2ewIg0HR5tT28z5mc8DMw9iMyIRSU=; b=QR0nIZbCnFXvSWXuQdmM9zUJhI YSkn9flh/EUcIL8gmugGdi+ERVWwjX3SGI2EXqRZXoDTlJsmq4SrCB1lkZ8Ifl0CdtQYannRCQdI4 IvoJSEk8LHgPZufFVcvpyCjEGBVpYQrvngGB/dJOKUAIPwqxr7Oz5dpgmp5Ddyi44bepmeYWdbuHU igx52wKMC560tZDi/X0c11FmJlylGBHESvn7JvMTGxfnSWTOHMEoSQzW41BmD71bWJfNiJWeqsQkK 4HRvsUfEoyhxPaSWkSyzxBEF062xSQ8zDgcu/9sA49WEjLaoeC4Txc3uDyfgDfwHwd7DY3JBawSzw lAARN9bA==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1r64Qt-0044fi-14; Thu, 23 Nov 2023 07:47:31 +0000 Date: Wed, 22 Nov 2023 23:47:31 -0800 From: Christoph Hellwig To: Amir Goldstein Cc: Christian Brauner , Jan Kara , Josef Bacik , David Howells , Jens Axboe , Miklos Szeredi , Al Viro , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 05/16] splice: remove permission hook from iter_file_splice_write() Message-ID: References: <20231122122715.2561213-1-amir73il@gmail.com> <20231122122715.2561213-6-amir73il@gmail.com> 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: <20231122122715.2561213-6-amir73il@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html > +ssize_t __kernel_write_iter(struct file *file, struct iov_iter *from, > + loff_t *pos); > +ssize_t do_iter_writev(struct file *file, struct iov_iter *iter, loff_t *ppos, > + rwf_t flags); So I first stumbled on the name because I kinda hate do_* functions, especially if they are not static, and then went down a little rathole: - first obviously the name, based on the other functions it probably should be in the __kernel_* namespace unless I'm missing something. - second can you add a little comment when it is to be used? Our maze of read and write helpers is becomeing a little too confusing even for someone who thought he knew the code (and wrote some if it). - can we just split do_iter_readv_writev instead of adding a wrapper Yes, that'll duplicate a little boiler plate code, but it'll make things much easier to follow. (- same probably for do_loop_readv_writev, although not directly relevant to this series)