Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155923
b: refs/heads/master
c: ebecd3d
h: refs/heads/master
i:
  155921: ed797a1
  155919: e7be221
v: v3
  • Loading branch information
Sage Weil authored and Chris Mason committed Jul 24, 2009
1 parent 25d9e08 commit 2b67b6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: d717aa1d31c36cb56059e97966cb76f0be021969
refs/heads/master: ebecd3d9d2adba144c15f1d35c78e0c26ead1bfd
8 changes: 5 additions & 3 deletions trunk/fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,9 +942,11 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,

mutex_unlock(&root->fs_info->trans_mutex);

if (flush_on_commit || snap_pending) {
if (flush_on_commit)
btrfs_start_delalloc_inodes(root);
if (flush_on_commit) {
btrfs_start_delalloc_inodes(root);
ret = btrfs_wait_ordered_extents(root, 0);
BUG_ON(ret);
} else if (snap_pending) {
ret = btrfs_wait_ordered_extents(root, 1);
BUG_ON(ret);
}
Expand Down

0 comments on commit 2b67b6a

Please sign in to comment.