diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index b908960c9746..94c0e42dfa1e 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -596,12 +596,8 @@ static int create_snapshot(struct btrfs_root *root, struct inode *dir, | |||
596 | ret = btrfs_commit_transaction(trans, | 596 | ret = btrfs_commit_transaction(trans, |
597 | root->fs_info->extent_root); | 597 | root->fs_info->extent_root); |
598 | } | 598 | } |
599 | if (ret) { | 599 | if (ret) |
600 | /* cleanup_transaction has freed this for us */ | ||
601 | if (trans->aborted) | ||
602 | pending_snapshot = NULL; | ||
603 | goto fail; | 600 | goto fail; |
604 | } | ||
605 | 601 | ||
606 | ret = pending_snapshot->error; | 602 | ret = pending_snapshot->error; |
607 | if (ret) | 603 | if (ret) |