]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: abort transaction in do_remap_reloc_trans() on failure
authorMark Harmstone <mark@harmstone.com>
Mon, 23 Mar 2026 17:16:43 +0000 (17:16 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 21 Apr 2026 02:00:52 +0000 (04:00 +0200)
commit73db0fad673af844772de964eebecae60eda0496
tree7e8dc4e3bd9680d847dc8a70c0a8052079f69670
parent9b8824533d75fb199a3fb0f6147ffcca64b5caf8
btrfs: abort transaction in do_remap_reloc_trans() on failure

If one of the calls made by do_remap_reloc_trans() fails, we can leave
the remap tree in an inconsistent state. Abort the transaction if this
happens, to prevent the corrupt state from reaching the disk.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c