diff options
author | Filipe Manana <[email protected]> | 2023-06-08 11:27:40 +0100 |
---|---|---|
committer | David Sterba <[email protected]> | 2023-06-19 13:59:38 +0200 |
commit | 40b0a749388517de244643c09bdbb98f7dcb6ef1 (patch) | |
tree | 93143fe6a4bdb4cea7f9ae5a2e7fbc518bc35f40 /lib/mpi/mpiutil.c | |
parent | 8793ed87b376844af96ae0e367a9bcdb0035312f (diff) |
btrfs: do not BUG_ON() on tree mod log failure at __btrfs_cow_block()
At __btrfs_cow_block(), instead of doing a BUG_ON() in case we fail to
record a tree mod log root insertion operation, do a transaction abort
instead. There's really no need for the BUG_ON(), we can properly
release all resources in this context and turn the filesystem to RO mode
and in an error state instead.
CC: [email protected] # 5.4+
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions