From patchwork Thu Dec 28 13:23:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9s_Souto?= X-Patchwork-Id: 10134653 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E57660388 for ; Thu, 28 Dec 2017 13:24:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F10A62D6B7 for ; Thu, 28 Dec 2017 13:24:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E341C2D6E6; Thu, 28 Dec 2017 13:24:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D339B2D6B7 for ; Thu, 28 Dec 2017 13:24:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753362AbdL1NYf (ORCPT ); Thu, 28 Dec 2017 08:24:35 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:32844 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751382AbdL1NYe (ORCPT ); Thu, 28 Dec 2017 08:24:34 -0500 Received: by mail-wr0-f195.google.com with SMTP id v21so28497119wrc.0; Thu, 28 Dec 2017 05:24:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oqSlD02Dpmt5gGCQqERyNL37VKgJNPXjVpAhDEAu+YQ=; b=igv0v4q2AV6YDcxXakVhDUviFQTzffHUC05KiZcflCjeyI8cM7sQdBf7Pikcd+pGCP Ul58E5oh1OFwtsJwcuWQH6HlSM66OlxVGw2Oe1hfvRdYWHLmIcGzKHf4omFByRcxssrx wp7843eFcnEJWYqKAeaDd7INSTTI6B3UZ466efGRK0NMHDS/K+++Pos8NdA5f/FVDV5d XP+WpDna79FTgKBnamtRt3MfF3Vk74zBC1+I+/WMhwDMLsGSds+SkRX5ILcQRzAoz+16 7YvZkb/KTWKP7loPHU9CeLR/ouS6QsZAB1q2i69qmRox8AGKyPPb/T7TmjL2BxjFBTls ddqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oqSlD02Dpmt5gGCQqERyNL37VKgJNPXjVpAhDEAu+YQ=; b=TxpR/Gyg06KvDFOr3WK8qslDgXG/NXFM4KEQhbxRFbIBxElp4RnVnPe17+Qr3yPuKD tGWYR+I3kSQEEM7aTS5LT8z3iLp7yqtUmEdshcW9ewVrdb4t6TBUnkd48vGOB9A7e61k 4gaCdas+GigqVS8gqW/iaeMFYVtqJvCCpJu3HqPfygE9kRjzV8C1RhGKueaipwL2/MHb xLP2GkD+hOOHq9pyatujg0wPcX8Rx+NzbI+YVnm+kZDQp7siM/I888RjNTvPF47KfcPp XE1KTUfSwl69F/PaF94icW6VRcf8POD6OoM0cSMkpuLnQQ+xXLWLEK9qS2h2ASFTzcq1 YdYg== X-Gm-Message-State: AKGB3mLszV8otwo+ofZCquSVv96rzR4sb8Hibt+cPfLO44R2+crXkjKN L1iP4/ZpM0qEiJaS2MywYuo= X-Google-Smtp-Source: ACJfBouLjltRR5E5DmZ23rAHa74YFhbKO4jUo3JucE/ALoJi1fVV7cgzhQFVjoV9vfavnVI6s8VGOg== X-Received: by 10.223.162.139 with SMTP id s11mr13143433wra.231.1514467473038; Thu, 28 Dec 2017 05:24:33 -0800 (PST) Received: from Dell-XPS-L322X.home ([92.187.118.108]) by smtp.googlemail.com with ESMTPSA id w75sm14994420wrb.86.2017.12.28.05.24.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Dec 2017 05:24:32 -0800 (PST) From: =?UTF-8?q?Andr=C3=A9s=20Souto?= To: Steve French Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Andr=C3=A9s=20Souto?= Subject: [PATCH] cifs: add .splice_write Date: Thu, 28 Dec 2017 14:23:08 +0100 Message-Id: <20171228132308.5709-1-kai670@gmail.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add splice_write support in cifs vfs using iter_file_splice_write Signed-off-by: Andrés Souto --- fs/cifs/cifsfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 8c8b75d3..ba2986bd 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -1068,6 +1068,7 @@ const struct file_operations cifs_file_ops = { .flush = cifs_flush, .mmap = cifs_file_mmap, .splice_read = generic_file_splice_read, + .splice_write = iter_file_splice_write, .llseek = cifs_llseek, .unlocked_ioctl = cifs_ioctl, .copy_file_range = cifs_copy_file_range, @@ -1086,6 +1087,7 @@ const struct file_operations cifs_file_strict_ops = { .flush = cifs_flush, .mmap = cifs_file_strict_mmap, .splice_read = generic_file_splice_read, + .splice_write = iter_file_splice_write, .llseek = cifs_llseek, .unlocked_ioctl = cifs_ioctl, .copy_file_range = cifs_copy_file_range, @@ -1105,6 +1107,7 @@ const struct file_operations cifs_file_direct_ops = { .flush = cifs_flush, .mmap = cifs_file_mmap, .splice_read = generic_file_splice_read, + .splice_write = iter_file_splice_write, .unlocked_ioctl = cifs_ioctl, .copy_file_range = cifs_copy_file_range, .clone_file_range = cifs_clone_file_range, @@ -1122,6 +1125,7 @@ const struct file_operations cifs_file_nobrl_ops = { .flush = cifs_flush, .mmap = cifs_file_mmap, .splice_read = generic_file_splice_read, + .splice_write = iter_file_splice_write, .llseek = cifs_llseek, .unlocked_ioctl = cifs_ioctl, .copy_file_range = cifs_copy_file_range, @@ -1139,6 +1143,7 @@ const struct file_operations cifs_file_strict_nobrl_ops = { .flush = cifs_flush, .mmap = cifs_file_strict_mmap, .splice_read = generic_file_splice_read, + .splice_write = iter_file_splice_write, .llseek = cifs_llseek, .unlocked_ioctl = cifs_ioctl, .copy_file_range = cifs_copy_file_range, @@ -1157,6 +1162,7 @@ const struct file_operations cifs_file_direct_nobrl_ops = { .flush = cifs_flush, .mmap = cifs_file_mmap, .splice_read = generic_file_splice_read, + .splice_write = iter_file_splice_write, .unlocked_ioctl = cifs_ioctl, .copy_file_range = cifs_copy_file_range, .clone_file_range = cifs_clone_file_range,