summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2008-12-02 06:36:10 -0500
committerChris Mason <chris.mason@oracle.com>2008-12-02 06:36:10 -0500
commit6e3ad88729103c4d19703311253fab8a49669fa8 (patch)
tree4dfbc656de0b8956fd90226b5a03d35c076b9d34 /fs
parent641f5219f2ea0dfd1c024c91021ddc83f50bf1ce (diff)
downloadlinux-3.10-6e3ad88729103c4d19703311253fab8a49669fa8.tar.gz
linux-3.10-6e3ad88729103c4d19703311253fab8a49669fa8.tar.bz2
linux-3.10-6e3ad88729103c4d19703311253fab8a49669fa8.zip
Btrfs: remove unneeded total_trans
Remove unneeded debugging sanity check. It gets corrupted anyway when multiple btrfs file systems are mounted, throwing bad warnings along the way. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/transaction.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index c2c3b428196..c38f6a0e30b 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -28,7 +28,6 @@
#include "ref-cache.h"
#include "tree-log.h"
-static int total_trans = 0;
extern struct kmem_cache *btrfs_trans_handle_cachep;
extern struct kmem_cache *btrfs_transaction_cachep;
@@ -39,8 +38,6 @@ static noinline void put_transaction(struct btrfs_transaction *transaction)
WARN_ON(transaction->use_count == 0);
transaction->use_count--;
if (transaction->use_count == 0) {
- WARN_ON(total_trans == 0);
- total_trans--;
list_del_init(&transaction->list);
memset(transaction, 0, sizeof(*transaction));
kmem_cache_free(btrfs_transaction_cachep, transaction);
@@ -57,7 +54,6 @@ static noinline int join_transaction(struct btrfs_root *root)
if (!cur_trans) {
cur_trans = kmem_cache_alloc(btrfs_transaction_cachep,
GFP_NOFS);
- total_trans++;
BUG_ON(!cur_trans);
root->fs_info->generation++;
root->fs_info->last_alloc = 0;