]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
btrfs: merge unlocking to common exit block in btrfs_commit_transaction
authorDavid Sterba <dsterba@suse.com>
Thu, 28 Nov 2019 15:03:00 +0000 (16:03 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:46 +0000 (17:01 +0100)
commit56e9f6ea32da884a2ec8ce7ed99171b8c5385d90
treeb43bf4b1f06bb6ac5e67683fe0051d2e1ff29f72
parent15b6e8a83e910c71e98c368e51b581135539efdf
btrfs: merge unlocking to common exit block in btrfs_commit_transaction

The tree_log_mutex and reloc_mutex locks are properly nested so we can
simplify error handling and add labels for them. This reduces line count
of the function.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/transaction.c