Commit c872afa2 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix bch2_propagate_key_to_snapshot_leaves()



When we handle a transaction restart in a nested context, we need to
return -BCH_ERR_transaction_restart_nested because we invalidated the
outer context's iterators and locks.

bch2_propagate_key_to_snapshot_leaves() wasn't doing this, this patch
fixes it to use trans_was_restarted().

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 5b7fbdcd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment