]> git.baikalelectronics.ru Git - 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)
commita57871ce71e2267028e4e460924d0f1fe01fa665
treeb43bf4b1f06bb6ac5e67683fe0051d2e1ff29f72
parentbcf6c254c5fd058859afcf15786e348a54e678db
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