Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1138923pxb; Wed, 4 Nov 2020 00:38:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHprqbLRfZ/heY3f4bgomDsPQviKeT4kXXrSBKQLAs41WUg8EZXEbfX4y1QZwgact5ktu0 X-Received: by 2002:a05:6402:b6e:: with SMTP id cb14mr12835405edb.308.1604479108210; Wed, 04 Nov 2020 00:38:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604479108; cv=none; d=google.com; s=arc-20160816; b=oP0EV1c1uv4928PhCPP/R9LZvuOzP/O40C5OTlFw+HXpZPK+KxLSKWsih4wcO2Q5lV olM6NxepT9Gi4m16CewiT2c8Clz4NgWffTD5y62E3h6oOmdknI7nIUf9fDFeEwpu/SVL C8KWG4ut1SKc+Wx0MG5pO2XMFXz74Rp11NPdatAJwG9K7Xh0ujyivPsaLLq7Glap5VY0 d6KaVej1yu3xzWBQyufJt1FZyuKpZWfUQrJBS6AMtnzClIJP0fta0/J6AuEPlxP4lsyN sKaCEWtPdMrP7Jbo3kLwbRboZRiIy4yWH0V95DPD4CQuxbW2lk4HTM+vaGg4RXMai1cW IaZA== 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=b2Fd/OiDJYNfX586ImlTF4ycJioykyPqmXwMnPPANko=; b=Whr0vdLdfki3qd9s3nKYaaxgn/y7FT71EgxPSeTsutYgfuxsgKWzfis9wZIwclkhys 60BaWirRA0ChN9P1ZVfLWKlwnsanbE0A9cs4oS304nPIRYGFTLVhxHBe/xA+yD3f1zzb QApIEMYkO4Kv1jXPOb3/9YmYD9Kal0aBCV0zvJ3pWx1m3AbqFg5sENW4PrpuJHh/zYpM XH0myAoV0GEtaxNFP+GTKCjwO2ym6tVfYbWvd2bC4/A17hdKMN6oDlYtdtp7iR5TbSKO Rb9QEMa28kCrwGSXT18v6RSuEkRmcBr2Hsw/UzVhTDmYEbN8pMK7xqMlL9zVcAYcCCqo gV/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=c5UoOMaE; 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 dr9si1018690ejc.156.2020.11.04.00.38.04; Wed, 04 Nov 2020 00:38:28 -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=c5UoOMaE; 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 S1726844AbgKDIeZ (ORCPT + 99 others); Wed, 4 Nov 2020 03:34:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbgKDIeY (ORCPT ); Wed, 4 Nov 2020 03:34:24 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31B26C0613D3; Wed, 4 Nov 2020 00:34:24 -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=b2Fd/OiDJYNfX586ImlTF4ycJioykyPqmXwMnPPANko=; b=c5UoOMaEg6CKOTEIDo9Xqg1KpG TYiuaASDVS47WTENY50MEwpVHQreig5OMM9/uRDR/Rhv/QVyCtKqoeKNlsxZrTrUARyxrHDvUJaOz FA1r0ZyYPNOt02XH8mPlK+9LrJ2L2yUEKJiNILvCUCX9+P5THC+G8eFgCudw9m8hTjlb2PdNcR5yT 7zGJDO4tIQWzfeW5bOm9B2YRrqYBKNRt6zOvQYt8Z3msyv1rdqz+9qP2eAGL4LiEjibd1jg7sshM4 3Fd7NvN5sOCa7RCg3bq1GGMAoekTddt5jCkxZj2XDVJCHxuRNw+ql2+v02KgBddwtLIiccSSFyj1R YqmZ+qPg==; 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 1kaEFG-0004Y2-K7; Wed, 04 Nov 2020 08:34:20 +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 2/6] proc: wire up generic_file_splice_read for iter ops Date: Wed, 4 Nov 2020 09:27:34 +0100 Message-Id: <20201104082738.1054792-3-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 Wire up generic_file_splice_read for the iter based proxy ops, so that splice reads from them work. Signed-off-by: Christoph Hellwig Tested-by: Greg Kroah-Hartman --- fs/proc/inode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 58c075e2a452d6..bde6b6f69852d2 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -597,6 +597,7 @@ static const struct file_operations proc_iter_file_ops = { .llseek = proc_reg_llseek, .read_iter = proc_reg_read_iter, .write = proc_reg_write, + .splice_read = generic_file_splice_read, .poll = proc_reg_poll, .unlocked_ioctl = proc_reg_unlocked_ioctl, .mmap = proc_reg_mmap, @@ -622,6 +623,7 @@ static const struct file_operations proc_reg_file_ops_compat = { static const struct file_operations proc_iter_file_ops_compat = { .llseek = proc_reg_llseek, .read_iter = proc_reg_read_iter, + .splice_read = generic_file_splice_read, .write = proc_reg_write, .poll = proc_reg_poll, .unlocked_ioctl = proc_reg_unlocked_ioctl, -- 2.28.0