From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1A9AC742A7 for ; Wed, 8 Mar 2023 14:47:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231646AbjCHOre (ORCPT ); Wed, 8 Mar 2023 09:47:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231316AbjCHOq6 (ORCPT ); Wed, 8 Mar 2023 09:46:58 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD34E7D0B1; Wed, 8 Mar 2023 06:45:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 58E76B81D07; Wed, 8 Mar 2023 14:45:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C264C433EF; Wed, 8 Mar 2023 14:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1678286730; bh=T9rmEZSCstrpxbVIO9IfutlDiKqctKr2IUk/L/EZRy8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A0TwCcjIHISY7YEHL1oBFUkmv9xxkJsBzo4sI2g4wSeD1Giu6wg4MT9fVl74LEeO1 uQ6AzS5S0cyhWkyA0PnqKi4EqU7tqDekPlpy8Sc6gJ9SZCfVe3dWu0GC1lb65WzZfg jRxtfa+QXkGmJEGl7vasp9bJrkyESAprLPYpm680= Date: Wed, 8 Mar 2023 15:45:27 +0100 From: Greg Kroah-Hartman To: David Howells Cc: Jens Axboe , Al Viro , Christoph Hellwig , Matthew Wilcox , Jan Kara , Jeff Layton , David Hildenbrand , Jason Gunthorpe , Logan Gunthorpe , Hillf Danton , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig , John Hubbard , Miklos Szeredi , Arnd Bergmann Subject: Re: [PATCH v16 05/13] tty, proc, kernfs, random: Use direct_splice_read() Message-ID: References: <20230308143754.1976726-1-dhowells@redhat.com> <20230308143754.1976726-6-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230308143754.1976726-6-dhowells@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 08, 2023 at 02:37:46PM +0000, David Howells wrote: > Use direct_splice_read() for tty, procfs, kernfs and random files rather > than going through generic_file_splice_read() as they just copy the file > into the output buffer and don't splice pages. This avoids the need for > them to have a ->read_folio() to satisfy filemap_splice_read(). > > Signed-off-by: David Howells > cc: Christoph Hellwig > cc: Jens Axboe > cc: Al Viro > cc: John Hubbard > cc: David Hildenbrand > cc: Matthew Wilcox > cc: Miklos Szeredi > cc: Arnd Bergmann > cc: Greg Kroah-Hartman > cc: linux-block@vger.kernel.org > cc: linux-fsdevel@vger.kernel.org > cc: linux-mm@kvack.org Acked-by: Greg Kroah-Hartman