From patchwork Sat Oct 24 23:17:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Tao X-Patchwork-Id: 7480441 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 592089F731 for ; Sat, 24 Oct 2015 15:29:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 893A2206EF for ; Sat, 24 Oct 2015 15:29:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9A8E9207DB for ; Sat, 24 Oct 2015 15:29:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752725AbbJXP3d (ORCPT ); Sat, 24 Oct 2015 11:29:33 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33611 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752715AbbJXP33 (ORCPT ); Sat, 24 Oct 2015 11:29:29 -0400 Received: by pabrc13 with SMTP id rc13so144300382pab.0 for ; Sat, 24 Oct 2015 08:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=primarydata_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/VwIQAKBFMRLkYCw2h4UqW9ydjdnipR5zYADjCXBM8g=; b=RBSUyExOXxafC25kr8N/JiRoYJ7uLKMvIvSSEe2jV1Wb19njm3s7cL8DClZmz6H0qX OfIzICBGfUmw41ei4Nk3zab5eBKhWp6BCqwvbe1P4S0YqYrQ+vFJtav10wteQT2WST0Q /fbwtBW13WU83u9Hc60n6/g2Frc1m/46O3LCOz700Ad7wnCKW6RP1IYcoloUIBVb2LYG fsAQUI85aQjmZOmrZcnGPK6FEWz83p+2aHEuUpB3X3duKQnYj6Vgve44n4PEHZPNXEii GkvxRm2k9z4wP119lJeIO+qGnAF8lXTd13gL6KGnuFFkOL0IFz2HXsm5l5uRrktJg6EP OFQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/VwIQAKBFMRLkYCw2h4UqW9ydjdnipR5zYADjCXBM8g=; b=XOpdqXYXX1G3wcV+MRANsI0ZxWmONUx9CNK92ytNSMppzOxw1OTFPmZF2ooByrlKiC 6XIW7rrJKsXx1wpyBOgQJbzAoVscAyKEo3YOkbbs/Q6RVmXrN073lh0AH4k/nuaqEf56 cveguiS5k5cI4ZSel4SqpDKHhUonfB9u92SD36em2R4mbLsMHKiV7GxHtCbIFapHJOJh llvshSTJASeEK9XlB2Qoh4LT8Nl7sjODjqMRiXz+ZMvorWADw6UjNO+oCGagIZCXRWk4 jQnpOjieihd3htCsyghvFTou3tMMoC2rHfv7q2ZJFwE09Mp90PolV1ZAmiO+Lp47LRUM s9tw== X-Gm-Message-State: ALoCoQkDEMXIg1nWRUMal95uz+vxw36ztCYXPKslzo4AACsYrqRtJVCTht2y3b13kw/iUfSm37J/ X-Received: by 10.68.69.15 with SMTP id a15mr31477948pbu.62.1445700568408; Sat, 24 Oct 2015 08:29:28 -0700 (PDT) Received: from lear.localdomain (ec2-54-65-164-9.ap-northeast-1.compute.amazonaws.com. [54.65.164.9]) by smtp.gmail.com with ESMTPSA id nj1sm24764918pbc.2.2015.10.24.08.29.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Oct 2015 08:29:27 -0700 (PDT) From: Peng Tao To: linux-fsdevel@vger.kernel.org Cc: Trond Myklebust , Anna Schumaker , Christoph Hellwig , Zach Brown , Darren Hart , Jeff Layton , bfields@fieldses.org, "Darrick J. Wong" , viro@zeniv.linux.org.uk, linux-nfs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-cifs@vger.kernel.org, Steve French , Peng Tao Subject: [PATCH 6/9] cifs: remove private handler of BTRFS_IOC_CLONE Date: Sun, 25 Oct 2015 07:17:13 +0800 Message-Id: <1445728636-10109-7-git-send-email-tao.peng@primarydata.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1445728636-10109-1-git-send-email-tao.peng@primarydata.com> References: <1445728636-10109-1-git-send-email-tao.peng@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP BTRFS_IOC_CLONE/BTRFS_IOC_CLONE_RANGE is now handled by generic layer and goes through the .copy_file_range method. Signed-off-by: Peng Tao --- fs/cifs/ioctl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c index bbab940..5dfc63a 100644 --- a/fs/cifs/ioctl.c +++ b/fs/cifs/ioctl.c @@ -267,9 +267,6 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) case CIFS_IOC_COPYCHUNK_FILE: rc = cifs_ioctl_clone(xid, filep, arg, 0, 0, 0, false); break; - case BTRFS_IOC_CLONE: - rc = cifs_ioctl_clone(xid, filep, arg, 0, 0, 0, true); - break; case CIFS_IOC_SET_INTEGRITY: if (pSMBFile == NULL) break;