From patchwork Tue Jan 13 18:54:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5623671 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 10AFDC058D for ; Tue, 13 Jan 2015 18:51:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3274E20328 for ; Tue, 13 Jan 2015 18:51:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D3E2B20340 for ; Tue, 13 Jan 2015 18:51:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752981AbbAMSvB (ORCPT ); Tue, 13 Jan 2015 13:51:01 -0500 Received: from mail-wg0-f49.google.com ([74.125.82.49]:63049 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751446AbbAMSvA (ORCPT ); Tue, 13 Jan 2015 13:51:00 -0500 Received: by mail-wg0-f49.google.com with SMTP id n12so4723451wgh.8 for ; Tue, 13 Jan 2015 10:50:58 -0800 (PST) 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; bh=YKDjCe+QOPylilBX/pChh+KlEZRhxIrgc6r/1UyLgss=; b=A+O2pzK3K0FEgdd7Qu+jBblFhu2nSQ3+Nrbgv74DlXQUPS9Ed9WAlDOLjckITOvMRx fIkXrYsfMDw4Ukr07mHWRtTzRiUucZzFB2o7hLh0B4VMcFiDfUo9pfj9H5qfbOKK+TWb fwmSTpBNdSj7VVEfUmdWacTFNSqfFbo1p7tf/hkpkRchzB5f5o+0co7ZucJXO1s6LHOz 0YEz2WZru+NgBPHdMCQM1nxsmcSGLXoHR4hd1EGKy+kM46AuNDt/tv3ipmbYNCrlBoki VWpGZgY2nP0dwErsRF2PvJBeVS7dy4flK5K0+gUIgN5eYHUYRkoqhD2bWJ8vhq1Oxl8a YMCg== X-Gm-Message-State: ALoCoQnuQkc/T7SXOg5miBfqcNpreT0/Lg012ftt6eY5VDDS3QaoARpcJFrknfC+2sxrKga3yYve X-Received: by 10.180.102.38 with SMTP id fl6mr1296275wib.53.1421175058906; Tue, 13 Jan 2015 10:50:58 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id h2sm103851wix.5.2015.01.13.10.50.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jan 2015 10:50:58 -0800 (PST) From: Rickard Strandqvist To: Chris Mason , Josef Bacik Cc: Rickard Strandqvist , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] btrfs: transaction: Remove unused function Date: Tue, 13 Jan 2015 19:54:06 +0100 Message-Id: <1421175246-6448-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 Remove the function btrfs_start_transaction_lflush() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- fs/btrfs/transaction.c | 7 ------- fs/btrfs/transaction.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index dcaae36..51003ce 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -534,13 +534,6 @@ struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, BTRFS_RESERVE_FLUSH_ALL); } -struct btrfs_trans_handle *btrfs_start_transaction_lflush( - struct btrfs_root *root, int num_items) -{ - return start_transaction(root, num_items, TRANS_START, - BTRFS_RESERVE_FLUSH_LIMIT); -} - struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) { return start_transaction(root, 0, TRANS_JOIN, 0); diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h index d8f40e1..027e49e 100644 --- a/fs/btrfs/transaction.h +++ b/fs/btrfs/transaction.h @@ -136,8 +136,6 @@ int btrfs_end_transaction(struct btrfs_trans_handle *trans, struct btrfs_root *root); struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, int num_items); -struct btrfs_trans_handle *btrfs_start_transaction_lflush( - struct btrfs_root *root, int num_items); struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root); struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root); struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root);