Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361000
b: refs/heads/master
c: 00d71c9
h: refs/heads/master
v: v3
  • Loading branch information
Miao Xie authored and Josef Bacik committed Mar 4, 2013
1 parent ad5c319 commit c5bd9bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aec8030a8745221c8658f2033b22c98528897b13
refs/heads/master: 00d71c9c17b1fd28fa54f323a29a0e23c6d3de40
4 changes: 4 additions & 0 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,8 @@ static noinline int create_subvol(struct inode *dir,
if (async_transid) {
*async_transid = trans->transid;
err = btrfs_commit_transaction_async(trans, root, 1);
if (err)
err = btrfs_commit_transaction(trans, root);
} else {
err = btrfs_commit_transaction(trans, root);
}
Expand Down Expand Up @@ -592,6 +594,8 @@ static int create_snapshot(struct btrfs_root *root, struct inode *dir,
*async_transid = trans->transid;
ret = btrfs_commit_transaction_async(trans,
root->fs_info->extent_root, 1);
if (ret)
ret = btrfs_commit_transaction(trans, root);
} else {
ret = btrfs_commit_transaction(trans,
root->fs_info->extent_root);
Expand Down

0 comments on commit c5bd9bf

Please sign in to comment.