mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
Btrfs: do not bug when we fail to commit the transaction
We BUG if we fail to commit the transaction when creating a snapshot, which is just obnoxious. Remove the BUG_ON(). Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com>
This commit is contained in:
parent
7bfdcf7fba
commit
c37b2b6269
1 changed files with 2 additions and 1 deletions
|
|
@ -571,7 +571,8 @@ static int create_snapshot(struct btrfs_root *root, struct dentry *dentry,
|
|||
ret = btrfs_commit_transaction(trans,
|
||||
root->fs_info->extent_root);
|
||||
}
|
||||
BUG_ON(ret);
|
||||
if (ret)
|
||||
goto fail;
|
||||
|
||||
ret = pending_snapshot->error;
|
||||
if (ret)
|
||||
|
|
|
|||
Loading…
Reference in a new issue