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 X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7979C2D0A3 for ; Wed, 4 Nov 2020 08:41:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 53713207BB for ; Wed, 4 Nov 2020 08:41:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="uujTH7VP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728504AbgKDIlJ (ORCPT ); Wed, 4 Nov 2020 03:41:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbgKDIlI (ORCPT ); Wed, 4 Nov 2020 03:41:08 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DF01C0613D3; Wed, 4 Nov 2020 00:41:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=a5oULKFczWJE8wpPo185mmyf8X80bBrK4/ugxfglgnU=; b=uujTH7VPF6HBLc/vJ0bdcBFvw2 CddWcgIvkvEeYPEFRb47JQGxGAQ4W0JoRLGvjCCay/DM66uVZtmQTlERlZyRNflzsXwGfsX/aJaW6 MrVIQZWIUCFEugls4IyytjsdsTYndqwLRVR05vSa0Ur0M6KFEzztyCYqPvos3n7Kd3+vaQzDog6vw 1XWWRY8CfBU+oSWjFuIVjXJ4fAKtnsAuPmrJSyJrwbtfcTK/kw6YDX6guPbqTTpLhC7bK6DSF3ISW e869ay/712vTS/rS8FF8SY3QXgXft7YvgbRljun9Y6Bh20f+hAPVQu7HxvLA6tjzsftzFdqoRKIL+ 7h+94+Gw==; Received: from 089144208145.atnat0017.highway.a1.net ([89.144.208.145] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaELm-00057P-7p; Wed, 04 Nov 2020 08:41:04 +0000 From: Christoph Hellwig To: Al Viro Cc: Greg KH , Linus Torvalds , Alexey Dobriyan , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH 5/6] proc "single files": switch to ->read_iter Date: Wed, 4 Nov 2020 09:27:37 +0100 Message-Id: <20201104082738.1054792-6-hch@lst.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201104082738.1054792-1-hch@lst.de> References: <20201104082738.1054792-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman Implement ->read_iter for all proc "single files" so that more bionic tests cases can pass when they call splice() on other fun files like /proc/version Signed-off-by: Greg Kroah-Hartman Signed-off-by: Christoph Hellwig --- fs/proc/generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/generic.c b/fs/proc/generic.c index 2f9fa179194d72..f81327673f4901 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -621,7 +621,7 @@ static int proc_single_open(struct inode *inode, struct file *file) static const struct proc_ops proc_single_ops = { /* not permanent -- can call into arbitrary ->single_show */ .proc_open = proc_single_open, - .proc_read = seq_read, + .proc_read_iter = seq_read_iter, .proc_lseek = seq_lseek, .proc_release = single_release, }; -- 2.28.0