diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 60bf8dfe7df484c77a96bf20035215b7a2997e24..0526b6c473c798fc91d650dc6b01991b2ebcd2e2 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -3963,6 +3963,7 @@ static noinline_for_stack int relocate_block_group(struct reloc_control *rc) restart: if (update_backref_cache(trans, &rc->backref_cache)) { btrfs_end_transaction(trans); + trans = NULL; continue; }