Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346668
b: refs/heads/master
c: 109f236
h: refs/heads/master
v: v3
  • Loading branch information
Liu Bo authored and Josef Bacik committed Dec 12, 2012
1 parent d52a1f9 commit ccc291f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 37c4146d2208ba7e4463e8dd95a1bf9e3d865280
refs/heads/master: 109f2365f1928af241b2ccbd0f6ba0b93d911288
6 changes: 5 additions & 1 deletion trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,12 @@ static int create_snapshot(struct btrfs_root *root, struct dentry *dentry,
ret = btrfs_commit_transaction(trans,
root->fs_info->extent_root);
}
if (ret)
if (ret) {
/* cleanup_transaction has freed this for us */
if (trans->aborted)
pending_snapshot = NULL;
goto fail;
}

ret = pending_snapshot->error;
if (ret)
Expand Down

0 comments on commit ccc291f

Please sign in to comment.