]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove duplicate journal_info reset on failure to commit transaction
authorFilipe Manana <fdmanana@suse.com>
Wed, 1 Apr 2026 18:46:59 +0000 (19:46 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 17:42:24 +0000 (19:42 +0200)
commite1194226bf7642cab9d45f32fff4ea600c9069cc
tree295dac5b83f1d706ea6c9f8a61d069b46b1e80c9
parent7801f3ea9591cf040f7f92c44f8ec91eaa0d6207
btrfs: remove duplicate journal_info reset on failure to commit transaction

If we get an error during the transaction commit path, we are resetting
current->journal_info to NULL twice - once in btrfs_commit_transaction()
right before calling cleanup_transaction() and then once again inside
cleanup_transaction(). Remove the instance in btrfs_commit_transaction().

Reviewed-by: Anand Jain <asj@kernel.org>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/transaction.c