From patchwork Wed May 3 18:28:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 9710251 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 483876021C for ; Wed, 3 May 2017 18:28:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EA3628613 for ; Wed, 3 May 2017 18:28:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 335C02861F; Wed, 3 May 2017 18:28:23 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 A9F2728613 for ; Wed, 3 May 2017 18:28:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753786AbdECS2V (ORCPT ); Wed, 3 May 2017 14:28:21 -0400 Received: from mailrelay105.isp.belgacom.be ([195.238.20.132]:14647 "EHLO mailrelay105.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751717AbdECS2U (ORCPT ); Wed, 3 May 2017 14:28:20 -0400 X-Belgacom-Dynamic: yes IronPort-PHdr: =?us-ascii?q?9a23=3A0aSJoxw6lhJl9+3XCy+O+j09IxM/srCxBDY+r6Qd?= =?us-ascii?q?0ekSIJqq85mqBkHD//Il1AaPBtqLra8cw8Pt8IneGkU4qa6bt34DdJEeHzQksu?= =?us-ascii?q?4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2TxTor3az9T8fHAnkfUow?= =?us-ascii?q?f7ytW92as8Pi7Py/5ZDVKzpIhSawYbRvNxj++R7OtsgKjItlArw8xhvAvj1DfO?= =?us-ascii?q?EAgStCIljbpxvg692r+5grpz5Itu4s7dVHeb/3c6QxUfpTCzFwYE4v48i+mxDJ?= =?us-ascii?q?TAKJrlUGX2kbiBtDAECR4hjwUL/qsTr8u/Y70iTMbp6+dqw9RTn3t/QjcxTvki?= =?us-ascii?q?pScmdhqGw=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2BKAgAOIApZ/zfGs1tcHAELAQUBgmpsK?= =?us-ascii?q?IFGjnORCgGVQoIPIYYDhEFAGAEBAQEBAQEBAQEBaiiCMwQBHQEEgxgjKXEkARK?= =?us-ascii?q?KFBGzSYQRhw2GX4RFiDKCSgWQFo1GkwcNkWCUNB84gQpOHhiEZgGCUD42hw+BT?= =?us-ascii?q?wEBAQ?= X-IPAS-Result: =?us-ascii?q?A2BKAgAOIApZ/zfGs1tcHAELAQUBgmpsKIFGjnORCgGVQoI?= =?us-ascii?q?PIYYDhEFAGAEBAQEBAQEBAQEBaiiCMwQBHQEEgxgjKXEkARKKFBGzSYQRhw2GX?= =?us-ascii?q?4RFiDKCSgWQFo1GkwcNkWCUNB84gQpOHhiEZgGCUD42hw+BTwEBAQ?= Received: from 55.198-179-91.adsl-dyn.isp.belgacom.be (HELO localhost.localdomain) ([91.179.198.55]) by relay.skynet.be with ESMTP; 03 May 2017 20:28:18 +0200 From: Fabian Frederick To: Steven Whitehouse , Bob Peterson Cc: cluster-devel@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, fabf@skynet.be Subject: [PATCH 2/2 linux-next] gfs2: remove unused flags parameter Date: Wed, 3 May 2017 20:28:08 +0200 Message-Id: <20170503182808.20305-1-fabf@skynet.be> X-Mailer: git-send-email 2.9.3 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We already assumed rename flags when calling gfs2_exchange() Signed-off-by: Fabian Frederick --- fs/gfs2/inode.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 9698796..b5858a3 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c @@ -1567,14 +1567,12 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry, * @odentry: The old dentry of the file * @ndir: Parent directory of new file name * @ndentry: The new dentry of the file - * @flags: The rename flags * * Returns: errno */ static int gfs2_exchange(struct inode *odir, struct dentry *odentry, - struct inode *ndir, struct dentry *ndentry, - unsigned int flags) + struct inode *ndir, struct dentry *ndentry) { struct gfs2_inode *odip = GFS2_I(odir); struct gfs2_inode *ndip = GFS2_I(ndir); @@ -1710,7 +1708,7 @@ static int gfs2_rename2(struct inode *odir, struct dentry *odentry, return -EINVAL; if (flags & RENAME_EXCHANGE) - return gfs2_exchange(odir, odentry, ndir, ndentry, flags); + return gfs2_exchange(odir, odentry, ndir, ndentry); return gfs2_rename(odir, odentry, ndir, ndentry); }