Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1141817pxb; Wed, 4 Nov 2020 00:45:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnOLdYEkOorhNLZ5Jp0gr4q17ReGdRTesTQlarl/xlf1qq3NB4xbgbkFnQ1yR8IA+8aw2u X-Received: by 2002:a17:906:31c1:: with SMTP id f1mr24925967ejf.253.1604479527947; Wed, 04 Nov 2020 00:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604479527; cv=none; d=google.com; s=arc-20160816; b=ZOZdxZA2HqaIgddEv6GmbC/NcS8CR2qY1B4Af900W+xMQImT3B1apvTEhYhis5YJfc QHDHBaovLwj98I0v8fMy2rTdGDfFSRjt9JEtEYxnmEEoHAkGKr9GgYecLGzW6P5fkBBq 1TYoSa7yBPBUgaLhT268+Qi26ieZaUuamfIXz4ufCpDK8TFGRyPCEIM6YzGVZYLj90ec lXxRGK3QAbMVMhQpLCWUuz7GLE0DV+El6cpZUXb/AlpgquM3qfVUUqgpK4Nwrt2mApIt 7k3stnfwsziTp325Ccu7Rt2asd1zhUcLKvmzgqXmy1EE1CX5Y87OAzHOT3OZ7uyQkUtV ZQcg== 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=BqGMdCF39ToNsf0gCJyADCoWFE//W7MHOhvrYub/R7U=; b=McF3wAnulo8eAvxFhoWzvkGoE3aJd5J//35nVbzI/xdH5mYe0/xR07yWCR+rFBOz/2 +U1X9oEEppC26proel7JXuBDiiyve3hIOZlQRgB34nI+WaNQ5H+4Kan6LT/LYNCGEPPb EqJLtf+PmrkgJEnhiu6hCU4rp8glRIosH3rQmwEFvfQILHn8dkGSfj1qNnjns5gBHPRG r0ECd4vvkXiqgArdVBOE0wZyw+8MmdfPukKVHfi7iKtlkoejGPwJvSEa4YSJ6+R+UdpV aDG3nTrgVtNG1MDyZ8NTdSGHoD4mDOEC2IoP07G7Wy3LuqipPjB+1UTnRnzhnc5P+UzB 4YbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UYHEnYom; 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 g23si212983edr.322.2020.11.04.00.45.04; Wed, 04 Nov 2020 00:45:27 -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=UYHEnYom; 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 S1726691AbgKDInU (ORCPT + 99 others); Wed, 4 Nov 2020 03:43:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbgKDInU (ORCPT ); Wed, 4 Nov 2020 03:43:20 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F15CC0613D3; Wed, 4 Nov 2020 00:43:20 -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=BqGMdCF39ToNsf0gCJyADCoWFE//W7MHOhvrYub/R7U=; b=UYHEnYomKrC1JJdW/FZ+RoLjRx hziFFRLsLwcP6vhmPRwKsjvYxRn/uprhVjfP+JQjQsdny0TN0CcX/qNuWeKhu/HHY+gvFnlg1HHD8 mLjilTzU8VkYw9YANpF0W+18l35tFGiu7/EmhMdk7cqc7NsqTWtQKyvij0hn488/q0jaBSwMPCcJb hmZiVrwI/VV73iU8zFGfupmX7yET5IxFK/FQOEqgunZAkT8SdVFIb0CBYdfhZ2jJN6Ptjnjys1EkK bW/aMjQq/AtOcZZU8CcKzW+0hyZwd75a6BoPO4lrqVN6faLMZ/MClwI5lz75Dgcftlk1zZCZYJ4K8 KgFyhoPg==; 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 1kaENv-0005E7-9y; Wed, 04 Nov 2020 08:43:16 +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 6/6] proc "seq files": switch to ->read_iter Date: Wed, 4 Nov 2020 09:27:38 +0100 Message-Id: <20201104082738.1054792-7-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 for all proc "seq files" so that splice works on them. Suggested-by: Linus Torvalds 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 f81327673f4901..b84663252adda0 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -590,7 +590,7 @@ static int proc_seq_release(struct inode *inode, struct file *file) static const struct proc_ops proc_seq_ops = { /* not permanent -- can call into arbitrary seq_operations */ .proc_open = proc_seq_open, - .proc_read = seq_read, + .proc_read_iter = seq_read_iter, .proc_lseek = seq_lseek, .proc_release = proc_seq_release, }; -- 2.28.0