Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1140570pxb; Wed, 4 Nov 2020 00:42:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjqIIPawmbd9jYVYfr4pwMi4T+ionX5nDSVAcnGM/3Eh6LjSMlIyQ74SHfd2Id6Iq3oCFM X-Received: by 2002:a17:907:10d9:: with SMTP id rv25mr18176277ejb.437.1604479350285; Wed, 04 Nov 2020 00:42:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604479350; cv=none; d=google.com; s=arc-20160816; b=lyGwQPuckFPs8H4AyFnzDVLF0g9JcQpWL0Rb4lDxvKN9jHf0iYGCTCszx/zQUSAPyw sInPlx1r4wuwmUN9gHYQDgiXuQDmDYFNHCvzN0qo5IMLex2gXL46Ho3XEafPuZqreLpz Q/ZnooOZkLiumKAC6oU5kDHv6qpsVpA+zXU90hPVqEhaGN+2RO5RbdAtNjVa6KhIT+AR CYsLQApcytHSzBD7CSbEPj6h4Hp2g7AN5kCt7aef3QYzn3aRm014pxR+bJ4+jpUkYSlm EaNb8YDT1Ej5EMSVg/r/7yrv8cd4/LXNO/TnFPjnugkTq91NtvJYF4e5PcfcABqCY98F cYsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jq+SLlFg5Rp7aoY+6e/cCBd7mqDUva/P1tZgwKBac4Y=; b=psYBMD7ZGd0xXUYHPYn7B8QTa5UQ3Kx6dJGFXOp4VL7dF6d7Hc/+TRoMS9LpKwKRgj 2zzHv39Kw944VcskJvGKK8XbOGoj3++c4bda6B3DQBQ+AOMEPzroPZQPQkOX8wnEeRU3 XZNOv5033lLxv1CjkKQfaB/TNz3tGgLjPdLuNI/pFKyUg7p0uJ//ksKWH+dS+k2h3evE CrsDN8VvrjILVkzbPpOAzG6b1WpHabyZ//Eu54Poj5dE3cTp1J96VHsDhdGJEHfGd9D7 zG+67Wmz5p5BM6iLrwEgmzpggpq2I0mLm6mWI77APo2U8hD2MyHy8WZ7HQp15eNUMfpd rP1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="UWp/1f22"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pv12si963220ejb.613.2020.11.04.00.42.07; Wed, 04 Nov 2020 00:42:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="UWp/1f22"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727754AbgKDIi4 (ORCPT + 99 others); Wed, 4 Nov 2020 03:38:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725891AbgKDIi4 (ORCPT ); Wed, 4 Nov 2020 03:38:56 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1A99C0613D3; Wed, 4 Nov 2020 00:38:55 -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=jq+SLlFg5Rp7aoY+6e/cCBd7mqDUva/P1tZgwKBac4Y=; b=UWp/1f22vmOs55Avsbw7tz25/p /3vx+cyEQXU+bA4zPNiaC6Dfbfp4Qmt/U5jDy0c/8kqN5peBaVixpqXaew7SDO9Z29OFjcOyJYYTJ Gq2kSnOR5NL8nprDJ5gkC+c98YFWM4PR6kBxkOSlTndsWnRcugicqxUp9UgLCduNQEQkCjxVDjq/S EViaPlWT69OP8xBxF9B6W90zC2wK36cofVl31CyQdT4CRwRyp9pBq02122bhCxvjJWO3PpNl5g3xm lppJngnpipuRsnyFIe79DDWl+y0O5I8pcYNsmVV9DGR3YCEBcpJeL5zK4k5uRYzSFX/PdO/hzW3Aq n6q1OKhQ==; 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 1kaEJd-0004ua-1s; Wed, 04 Nov 2020 08:38:51 +0000 From: Christoph Hellwig To: Al Viro Cc: Greg KH , Linus Torvalds , Alexey Dobriyan , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] proc/stat: switch to ->read_iter Date: Wed, 4 Nov 2020 09:27:36 +0100 Message-Id: <20201104082738.1054792-5-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 Implement ->read_iter so that splice can be used on this file. Suggested-by: Linus Torvalds Signed-off-by: Christoph Hellwig --- fs/proc/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/stat.c b/fs/proc/stat.c index 46b3293015fe61..4695b6de315129 100644 --- a/fs/proc/stat.c +++ b/fs/proc/stat.c @@ -226,7 +226,7 @@ static int stat_open(struct inode *inode, struct file *file) static const struct proc_ops stat_proc_ops = { .proc_flags = PROC_ENTRY_PERMANENT, .proc_open = stat_open, - .proc_read = seq_read, + .proc_read_iter = seq_read_iter, .proc_lseek = seq_lseek, .proc_release = single_release, }; -- 2.28.0