From patchwork Thu Feb 16 21:47:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13143990 Return-Path: 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 AF0D7C636CC for ; Thu, 16 Feb 2023 21:48:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 513156B0078; Thu, 16 Feb 2023 16:48:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4C2C16B007D; Thu, 16 Feb 2023 16:48:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 38A746B007E; Thu, 16 Feb 2023 16:48:31 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 26ED06B0078 for ; Thu, 16 Feb 2023 16:48:31 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 02BD3140C2F for ; Thu, 16 Feb 2023 21:48:30 +0000 (UTC) X-FDA: 80474494422.15.13601AD Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf15.hostedemail.com (Postfix) with ESMTP id 54DACA0002 for ; Thu, 16 Feb 2023 21:48:29 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=GFGVLnqp; spf=pass (imf15.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.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=1676584109; 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=Gp2W96yfCpLFU4rVrbJwG/yzMjTMitm55rNRmKmTZrE=; b=YKHphldNDihAN5nptkWNTH44jLFONhUuidb+BwlIbrwRnMxhD3/XYqDOB/aFp+tynT9tbu SFTBKrmiGA68K1/eYS5a+ux0NRh0YkXbhi9gASv4xfNz/nyCmXmmdRcUO2sQLOQNZdQsUD gGEGUiWpwdTzCUfUNijBzbt3o1qifek= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=GFGVLnqp; spf=pass (imf15.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.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=1676584109; a=rsa-sha256; cv=none; b=4QkgqwP2R3NbMzeUT8XwvLcufZQ8kcSkVOClroNZ5G5ev6YBYWlJYQTPJ/wY0YkUnzahwz zLXU5f+j8a7VxvkTP25xLX4DUmQHUFk7kODgS2En6nUKQPbhnYKH79Wo8W3ddmLZFT9Qie 7+R+ESD1Psv2Xs8GSOBD4pw7I0iqEv4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676584108; 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=Gp2W96yfCpLFU4rVrbJwG/yzMjTMitm55rNRmKmTZrE=; b=GFGVLnqpldnpL6khlTDwwnnhbHdBIRYD/67+jxGYkmMwQawlOvqORdOlkc/H+fVzXQMiZc wuFnoE85NUUCF7/pkASIDrmOFeRi22l6eSKK2NAfl5HB/ozOwfZ16UZnMP0mwBLCLf1fhU eyhiTUnxJJiYRdrXjufJLoJiFxJj7oU= 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-654-t-XLGBKJN1OaorYTO7C7CA-1; Thu, 16 Feb 2023 16:48:25 -0500 X-MC-Unique: t-XLGBKJN1OaorYTO7C7CA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D2CB738123AF; Thu, 16 Feb 2023 21:48:24 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8BB9E492B15; Thu, 16 Feb 2023 21:48:22 +0000 (UTC) From: David Howells To: Steve French Cc: David Howells , Jens Axboe , Al Viro , Shyam Prasad N , Rohith Surabattula , Tom Talpey , Stefan Metzmacher , Christoph Hellwig , Matthew Wilcox , Jeff Layton , linux-cifs@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Steve French , Christoph Hellwig , David Hildenbrand , John Hubbard Subject: [PATCH 06/17] splice: Export filemap/direct_splice_read() Date: Thu, 16 Feb 2023 21:47:34 +0000 Message-Id: <20230216214745.3985496-7-dhowells@redhat.com> In-Reply-To: <20230216214745.3985496-1-dhowells@redhat.com> References: <20230216214745.3985496-1-dhowells@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 54DACA0002 X-Rspam-User: X-Stat-Signature: b66kuq41ui7essnjkjxgernrmfe4uca1 X-HE-Tag: 1676584109-448540 X-HE-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bftHXdMqVqzGpeV6twPHVAhSq9aLR0Iq8jNxE7HuArddQD2Ne4ZF380WDNY5iZL+7crbUjo+xDrhy8MpVh+OOoq2wBEXpeJfuLOCn7ltHDQAE/sIjIQT+NFI40JNoxSu882pHIk5RBevP8IPIhOd7/6jTlqFzqdQPfuyYrnZwb3o4cdkGH90SEqJdlcpMzeq4MKju8eA9WcZEyWPtED7IMMlhLD4TBoebt/julM8mhf4GToF9UyQJxhyUYgrhnyMKfLcRj0qzzxGHiBBkoQYWUd4C3s/UCwZ9N1Q0+lxc6IPqAsvnCtxruwlw2+PsQeMFM9zXTz8kJVYb/kN46LiJl8PrXg37dbfyAvY5o+thLblbrqyND6zzLcuFl1JUTm5BGySiwg1cow5SVXuGtVmu5nk4t88jJ2KgY4RX73rma/L9XikSq5IDfnUgO+Qvdr3vR0atCLfkUgS/Mf5+WTL5vrldLdApn8UE3qEjFMW2gHx6ChYu+wCUeMb 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: filemap_splice_read() and direct_splice_read() should be exported. Signed-off-by: David Howells cc: Steve French cc: Jens Axboe cc: Christoph Hellwig cc: Al Viro cc: David Hildenbrand cc: John Hubbard cc: linux-cifs@vger.kernel.org cc: linux-mm@kvack.org cc: linux-block@vger.kernel.org cc: linux-fsdevel@vger.kernel.org --- fs/splice.c | 1 + mm/filemap.c | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/splice.c b/fs/splice.c index 4c6332854b63..928c7be2f318 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -373,6 +373,7 @@ ssize_t direct_splice_read(struct file *in, loff_t *ppos, kfree(bv); return ret; } +EXPORT_SYMBOL(direct_splice_read); /** * generic_file_splice_read - splice data from file to a pipe diff --git a/mm/filemap.c b/mm/filemap.c index 8c7b135c8e23..570f86578f7c 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2969,6 +2969,7 @@ ssize_t filemap_splice_read(struct file *in, loff_t *ppos, return total_spliced ? total_spliced : error; } +EXPORT_SYMBOL(filemap_splice_read); static inline loff_t folio_seek_hole_data(struct xa_state *xas, struct address_space *mapping, struct folio *folio,