Message ID | 20230329141354.516864-30-dhowells@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC445C6FD18 for <linux-mm@archiver.kernel.org>; Wed, 29 Mar 2023 14:15:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 090306B00A1; Wed, 29 Mar 2023 10:15:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F34506B00A2; Wed, 29 Mar 2023 10:15:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DAF196B00A3; Wed, 29 Mar 2023 10:15:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id C9BAF6B00A1 for <linux-mm@kvack.org>; Wed, 29 Mar 2023 10:15:23 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 8AD61160D57 for <linux-mm@kvack.org>; Wed, 29 Mar 2023 14:15:23 +0000 (UTC) X-FDA: 80622133326.19.3D3C00D Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf07.hostedemail.com (Postfix) with ESMTP id 85B2140016 for <linux-mm@kvack.org>; Wed, 29 Mar 2023 14:15:21 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=QbxP+zm1; spf=pass (imf07.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1680099321; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=BwLwJU8AwjD+1uYy2mnm7V08kEOLBE2Z8d7v3yKcDiA=; b=vmgbibNHON54PStYtOLkkXyjlAQLXlXRRMcpxwnTPLcwYM71s7ICuU+40bzTbvEdDHsZMt R7bSeVhhNwvKwGIeHMJ/N9zh6Mxba+Jva2UZNZUIHRQsFQoIR8ShkQJktNiZXhwxkoWYvU fS8BCqaq0N0H+4ScIP5nDgc5ja4XL9M= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=QbxP+zm1; spf=pass (imf07.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1680099321; a=rsa-sha256; cv=none; b=v3IAsg4dMSvThIKh6n79jZS802vixgq2yjSffrW3Qq+62vx6wMhgYAQVSoL4KrVtHAAG/g HfQIlNNnjFUk0Yq/p5t2C8Lhk2RvsM7snBjtz7pRcHw5pMasDvK6poHHatc89g4/7yYimQ htJxaZzfKzV8FUaEidWIEofeJYN38xI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680099320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BwLwJU8AwjD+1uYy2mnm7V08kEOLBE2Z8d7v3yKcDiA=; b=QbxP+zm1WppsMQjBQth+98g/WeZk+j8ibWz+G7veLPLMcIrmhM+FlI1Ooco3E0FktGBe3r PvZmDNA5Mq8xopMV39607enNsTJGGM+sAxv1HWByYcQ/DhTaPGRTYkZvEil45+0C/21vCR DKJwTVzEK7IXWPaj5ZL6ZLTKnPZnu+E= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-1-P4yHE0I5OgCg_PbyvAV0fw-1; Wed, 29 Mar 2023 10:15:19 -0400 X-MC-Unique: P4yHE0I5OgCg_PbyvAV0fw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 23AE23814951; Wed, 29 Mar 2023 14:15:18 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3CE2E2027040; Wed, 29 Mar 2023 14:15:16 +0000 (UTC) From: David Howells <dhowells@redhat.com> To: Matthew Wilcox <willy@infradead.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: David Howells <dhowells@redhat.com>, Al Viro <viro@zeniv.linux.org.uk>, Christoph Hellwig <hch@infradead.org>, Jens Axboe <axboe@kernel.dk>, Jeff Layton <jlayton@kernel.org>, Christian Brauner <brauner@kernel.org>, Chuck Lever III <chuck.lever@oracle.com>, Linus Torvalds <torvalds@linux-foundation.org>, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [RFC PATCH v2 29/48] Remove file->f_op->sendpage Date: Wed, 29 Mar 2023 15:13:35 +0100 Message-Id: <20230329141354.516864-30-dhowells@redhat.com> In-Reply-To: <20230329141354.516864-1-dhowells@redhat.com> References: <20230329141354.516864-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 85B2140016 X-Stat-Signature: zjjjpi8cckcm5psmq7pbm9pnuxqq66dn X-HE-Tag: 1680099321-776024 X-HE-Meta: U2FsdGVkX1+cRCQjLoyUWFryV8Bdo18DnEQiA0rHO/dTnEg42g9lD7xFuvsKzvc48jWwaxMwNQR051R4C5nNuWxLGQvddYLtSKBhKR+LMj3K5/DIBToxtUltQLsnFh5oQGwc0Zfm+dYPvhzovmo590sr5Bjf7JJ8vz3ZrKD3wahB0lPJSRmeAuadDoD2Mb9WZ/XHi038M9VoNdxq2Sia+LPkHQupBvjJMpaDtvT35UOZBMjkvvPKbFd98bM5S0sYSlMc/4KOUo8X0ZW0ywGdpod4XlL0F1/H+SDXIx0vl8oetuqShz/xAaiO19KjXTG+F2Ru4B8ckIfqt55w0e7r/vebjWdSndVeocOi3MwPwsYn+cDU2sDgirxxLtMWdN28hC+YYLRx9ZSKq4Eqiqi32YN5UpVvsyIde2L5vSqD2zIk2MPw65PG7vcJPKp6HKSdiXFBCE2ekG2iqP9Z505tQRmt9uHMxDffuN40TMU33RnkFyV8hwNMXobtXGVaRWhtvmZsGCYOtqvSOHfBvRa3voe7vDbfESpnn4X3aj43HzO0KZVoaWadoo26C7irdJbfSjCItKjW/QGRDV2puH6vn3K21IDSWq+eo0tWCOA8owt3atFETOZEyz6anNqnJQb/zlA3QzyxgNqTvY5NxTbNcfqP9Hl+UMSQYMHKsg9mDXBtLbmBcMzOW52LVGbFi8rxPtfLNxIP1tXwOnyWvnocoZ2nR+6LCLNun8wqHhUm6bfqQWbgc/aIy2esCEQaOPjp34Yt4klFl7GG8eDGP4oEme2/7KJYU5f5iAboPRXyrdPJpXWdDe0XnMgMXbrResh77wEttyM3B50aoRj1k3884CF1CwskXsrA0xOR1dKPQrlk/2pLA1V5vETX3X4QovgMPOQAodp//Vq3BmhI1KnsL/BjyOp9lq0Qr41GTLho8aK8lVUkHcChgLw3RDLEnPI5+o4KdD4kPBVXFxIykAs CEbH57RM EYF5pcJ0tbNdUPP/dE/0ri48ZjrN7F1FZ63NMBIh7nUNDeFgtpaRk0udeR57jN8r9hpB0NoVzqVBS1ywa0dPvOfxZICogzcCZwQHkqTH+gy5TEHghC1JYUkdYOiECiDg6FTNhaILrHVwl156nhyZDuLrGXxoeG1OTZ5xZzqQLaJLU/MwjI3gKavMhCEIVDkfQLuzK/gCg9UVC+qu19IToc2Jxl5fxiHLHHYso4O4OIk7iCtCgLPT1LTPz5j3jddYUt4uD1mtYouWs9ZdjzxBAcla2ki/qZ2OmrKFXfPmD15UVPpGl+QdOxJZV83AMIjkz6pCxCYQmclb7O1JokPP+j3jGcVEPxRTLN5YVaDnyyfJ08qhp6F4P8B+zT62QFuZKUHfQpuVW5JdooTySn9WLNGfhUtH58FhkBAnIiZK7cwnfJSgyiPYO1O88Ym9jPt0qOwJV X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
splice, net: Replace sendpage with sendmsg(MSG_SPLICE_PAGES)
|
expand
|
diff --git a/include/linux/fs.h b/include/linux/fs.h index f3ccc243851e..a9f1b2543d2c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1773,7 +1773,6 @@ struct file_operations { int (*fsync) (struct file *, loff_t, loff_t, int datasync); int (*fasync) (int, struct file *, int); int (*lock) (struct file *, int, struct file_lock *); - ssize_t (*sendpage) (struct file *, struct page *, int, size_t, loff_t *, int); unsigned long (*get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long); int (*check_flags)(int); int (*flock) (struct file *, int, struct file_lock *);
Remove file->f_op->sendpage as splicing to a socket now calls sendmsg rather than sendpage. Signed-off-by: David Howells <dhowells@redhat.com> cc: "David S. Miller" <davem@davemloft.net> cc: Eric Dumazet <edumazet@google.com> cc: Jakub Kicinski <kuba@kernel.org> cc: Paolo Abeni <pabeni@redhat.com> cc: Jens Axboe <axboe@kernel.dk> cc: Matthew Wilcox <willy@infradead.org> cc: netdev@vger.kernel.org --- include/linux/fs.h | 1 - 1 file changed, 1 deletion(-)