Message ID | 20210706231242.aa02ddf73d5b.Id2928a2670d916fb090812a3e9c980d155ffac20@changeid |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=VcnxxJwC; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=sipsolutions.net header.i=@sipsolutions.net header.a=rsa-sha256 header.s=mail header.b=pBMXFEmT; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GKFdj0Q1Wz9sRN for <incoming@patchwork.ozlabs.org>; Wed, 7 Jul 2021 07:13:13 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8YA13tWh5CRpE9+0aPP+uoaXL15Kat13Xv4sxjuSYd4=; b=VcnxxJwCkvKpMm Jew6FpJ7lzHT3i2XuLI0ylttzLevoLYNv9ZwfF3RzVT76dHmviiavRZcBN0XB6CyhQFaV9T8US12j bOixHxojg5Q1v4QAAPro6dlxbd6L8YnzaA+Kc4Jm7RbYc6SbW1sWeNogBYjdFk/VwobmubKvybJzB 8LxBYczfpfrBnaKfIgfxEHaHulpe3TJVkzhbDFzY2rjz6fApRk9Ypc75C+SKHonsMutPdvToiYPzc Mq8oaeEFsXptUNcPjPGUmyyEAWdHcEAo4VFvD6FCBUE/Ty53AbW1pCltXKnYQuESDVbsqj6kW/FSI TMriCv/Gq41EJY2zkTug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0sND-00Cqyp-5l; Tue, 06 Jul 2021 21:12:55 +0000 Received: from s3.sipsolutions.net ([2a01:4f8:191:4433::2] helo=sipsolutions.net) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0sNA-00Cqxt-ER for linux-um@lists.infradead.org; Tue, 06 Jul 2021 21:12:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=mJdR8ozaDo4/+w2eo532+Zopmr8czrYDhFmXFAxRWNo=; t=1625605970; x=1626815570; b=pBMXFEmTkPaisGzWJ+YM6JKh8MOJxnOMpzCMEa+zje4x7NjMv3onOif4ZHLTtl6i1YVVNH2BA9P e2q4erwtTXLTqak7D7geVhprdprWyHYPwm8lVjP+7R5TsbwA6yEzmtS82BJJEa185QUrvV6YZFvnI 0TxsANAYJOdp/gGuhi1NwGc0ByU9SyRKJ+sbmnXT4+nqnQKDvA8gPqenMVflFG597u2cLxGgqJDgv eeAhAGmmSHDBXJjtoeM0xBu997ZaDw3LtDbx4s7/5HxJtlIVUGX+rN8QWvjuOqdgl3zEMS65VleMl Rkf0/PofLUV9p9u1GO3jlt0WXkKKnk0rQJ+A==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from <johannes@sipsolutions.net>) id 1m0sN4-00GNwy-0j; Tue, 06 Jul 2021 23:12:46 +0200 From: Johannes Berg <johannes@sipsolutions.net> To: linux-um@lists.infradead.org Cc: Johannes Berg <johannes.berg@intel.com> Subject: [PATCH] hostfs: support splice_write Date: Tue, 6 Jul 2021 23:12:42 +0200 Message-Id: <20210706231242.aa02ddf73d5b.Id2928a2670d916fb090812a3e9c980d155ffac20@changeid> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210706_141252_529293_D5A15F4C X-CRM114-Status: UNSURE ( 7.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Johannes Berg <johannes.berg@intel.com> There's really no good reason not to, and e.g. trace-cmd currently requires it for the temporary per-CPU files. Hook up splice_write just like everyone else does. Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-um.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-um>, <mailto:linux-um-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-um/> List-Post: <mailto:linux-um@lists.infradead.org> List-Help: <mailto:linux-um-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-um>, <mailto:linux-um-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" <linux-um-bounces@lists.infradead.org> Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
hostfs: support splice_write
|
expand
|
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 7d0c3dbb2898..d5c9d886cd9f 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -381,6 +381,7 @@ static int hostfs_fsync(struct file *file, loff_t start, loff_t end, static const struct file_operations hostfs_file_fops = { .llseek = generic_file_llseek, .splice_read = generic_file_splice_read, + .splice_write = iter_file_splice_write, .read_iter = generic_file_read_iter, .write_iter = generic_file_write_iter, .mmap = generic_file_mmap,