aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-01-15 08:40:48 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:59 -0400
commitcee36a03e8f7c6e14aefd497d3acf01bcd3ef153 (patch)
tree14195245463be27ab4314da6eb943b146e6c8591 /fs/btrfs/transaction.c
parent61295eb8665e723e77af91d0a1e655a4bd28344f (diff)
Rework btrfs_drop_inode to avoid scheduling
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r--fs/btrfs/transaction.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 614903f5c884..a3205808ab2b 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -699,7 +699,9 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
699 BUG_ON(ret); 699 BUG_ON(ret);
700 700
701 cur_trans = root->fs_info->running_transaction; 701 cur_trans = root->fs_info->running_transaction;
702 spin_lock(&root->fs_info->new_trans_lock);
702 root->fs_info->running_transaction = NULL; 703 root->fs_info->running_transaction = NULL;
704 spin_unlock(&root->fs_info->new_trans_lock);
703 btrfs_set_super_generation(&root->fs_info->super_copy, 705 btrfs_set_super_generation(&root->fs_info->super_copy,
704 cur_trans->transid); 706 cur_trans->transid);
705 btrfs_set_super_root(&root->fs_info->super_copy, 707 btrfs_set_super_root(&root->fs_info->super_copy,