Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1f32b7c authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

btrfs: simplify mutex unlocking code in btrfs_commit_transaction



No functional change rearrange the mutex_unlock.

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarNikolay Borisov <nborisov@suse.com>
[ edit subject ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent cadbc0a0
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -2265,16 +2265,13 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans)
	}

	ret = write_all_supers(fs_info, 0);
	if (ret) {
		mutex_unlock(&fs_info->tree_log_mutex);
		goto scrub_continue;
	}

	/*
	 * the super is written, we can safely allow the tree-loggers
	 * to go about their business
	 */
	mutex_unlock(&fs_info->tree_log_mutex);
	if (ret)
		goto scrub_continue;

	btrfs_finish_extent_commit(trans, fs_info);