]> git.dujemihanovic.xyz Git - linux.git/commit
btrfs: always clear PERTRANS metadata during commit
authorBoris Burkov <boris@bur.io>
Tue, 26 Mar 2024 19:01:28 +0000 (12:01 -0700)
committerDavid Sterba <dsterba@suse.com>
Tue, 2 Apr 2024 17:19:13 +0000 (19:19 +0200)
commit6e68de0bb0ed59e0554a0c15ede7308c47351e2d
tree797903b9feb8622d1fa013811ef4ce9d09444826
parent3c6f0c5ecc8910d4ffb0dfe85609ebc0c91c8f34
btrfs: always clear PERTRANS metadata during commit

It is possible to clear a root's IN_TRANS tag from the radix tree, but
not clear its PERTRANS, if there is some error in between. Eliminate
that possibility by moving the free up to where we clear the tag.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/transaction.c