mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 10:20:49 +07:00
Btrfs: don't bug_on when we fail when cleaning up transactions
There is no reason for this sort of jackassery. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
parent
b6c60c8018
commit
6596a92819
@ -1942,6 +1942,5 @@ int btrfs_clean_one_deleted_snapshot(struct btrfs_root *root)
|
||||
* If we encounter a transaction abort during snapshot cleaning, we
|
||||
* don't want to crash here
|
||||
*/
|
||||
BUG_ON(ret < 0 && ret != -EAGAIN && ret != -EROFS);
|
||||
return 1;
|
||||
return (ret < 0) ? 0 : 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user