Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332559
b: refs/heads/master
c: 6df7881
h: refs/heads/master
i:
  332557: 62afb8a
  332555: 8a149ac
  332551: 1542b35
  332543: b713f64
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Oct 1, 2012
1 parent 24d9dd6 commit cd630e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 425d17a290c0c63785ec65db154a95c6337aeefa
refs/heads/master: 6df7881a84013f91405e5e113a4c322dd1804ba6
4 changes: 2 additions & 2 deletions trunk/fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,6 @@ static int __btrfs_end_transaction(struct btrfs_trans_handle *trans,
btrfs_trans_release_metadata(trans, root);
trans->block_rsv = NULL;

sb_end_intwrite(root->fs_info->sb);

if (lock && !atomic_read(&root->fs_info->open_ioctl_trans) &&
should_end_transaction(trans, root)) {
trans->transaction->blocked = 1;
Expand All @@ -586,6 +584,8 @@ static int __btrfs_end_transaction(struct btrfs_trans_handle *trans,
}
}

sb_end_intwrite(root->fs_info->sb);

WARN_ON(cur_trans != info->running_transaction);
WARN_ON(atomic_read(&cur_trans->num_writers) < 1);
atomic_dec(&cur_trans->num_writers);
Expand Down

0 comments on commit cd630e9

Please sign in to comment.