diff options
author | 2023-06-08 11:27:46 +0100 | |
---|---|---|
committer | 2023-06-19 13:59:39 +0200 | |
commit | 11d6ae03557e34dd2bc9e57d1a5139ab3c7be54f (patch) | |
tree | 83a2a791df72ec21d129f6543f276d560d38db7c /tools/counter/Makefile | |
parent | btrfs: abort transaction at update_ref_for_cow() when ref count is zero (diff) | |
download | linux-11d6ae03557e34dd2bc9e57d1a5139ab3c7be54f.tar.gz linux-11d6ae03557e34dd2bc9e57d1a5139ab3c7be54f.tar.bz2 linux-11d6ae03557e34dd2bc9e57d1a5139ab3c7be54f.zip |
btrfs: do not BUG_ON() on tree mod log failures at push_nodes_for_insert()
At push_nodes_for_insert(), instead of doing a BUG_ON() in case we fail to
record tree mod log operations, do a transaction abort and return the
error to the caller. There's really no need for the BUG_ON() as we can
release all resources in this context, and we have to abort because other
future tree searches that use the tree mod log (btrfs_search_old_slot())
may get inconsistent results if other operations modify the tree after
that failure and before the tree mod log based search.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/counter/Makefile')
0 files changed, 0 insertions, 0 deletions