提交 d973ac19 编写于 作者: J Joe Thornber 提交者: Alasdair G Kergon

dm thin metadata: remove pointless label from __commit_transaction

Remove the pointless label 'out' from __commit_transaction in
dm-thin-metadata.c
Signed-off-by: NJoe Thornber <ejt@redhat.com>
Signed-off-by: NMike Snitzer <snitzer@redhat.com>
Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
上级 3caf6d73
...@@ -597,31 +597,31 @@ static int __commit_transaction(struct dm_pool_metadata *pmd) ...@@ -597,31 +597,31 @@ static int __commit_transaction(struct dm_pool_metadata *pmd)
r = __write_changed_details(pmd); r = __write_changed_details(pmd);
if (r < 0) if (r < 0)
goto out; return r;
if (!pmd->need_commit) if (!pmd->need_commit)
goto out; return r;
r = dm_sm_commit(pmd->data_sm); r = dm_sm_commit(pmd->data_sm);
if (r < 0) if (r < 0)
goto out; return r;
r = dm_tm_pre_commit(pmd->tm); r = dm_tm_pre_commit(pmd->tm);
if (r < 0) if (r < 0)
goto out; return r;
r = dm_sm_root_size(pmd->metadata_sm, &metadata_len); r = dm_sm_root_size(pmd->metadata_sm, &metadata_len);
if (r < 0) if (r < 0)
goto out; return r;
r = dm_sm_root_size(pmd->data_sm, &data_len); r = dm_sm_root_size(pmd->data_sm, &data_len);
if (r < 0) if (r < 0)
goto out; return r;
r = dm_bm_write_lock(pmd->bm, THIN_SUPERBLOCK_LOCATION, r = dm_bm_write_lock(pmd->bm, THIN_SUPERBLOCK_LOCATION,
&sb_validator, &sblock); &sb_validator, &sblock);
if (r) if (r)
goto out; return r;
disk_super = dm_block_data(sblock); disk_super = dm_block_data(sblock);
disk_super->time = cpu_to_le32(pmd->time); disk_super->time = cpu_to_le32(pmd->time);
...@@ -644,7 +644,6 @@ static int __commit_transaction(struct dm_pool_metadata *pmd) ...@@ -644,7 +644,6 @@ static int __commit_transaction(struct dm_pool_metadata *pmd)
if (!r) if (!r)
pmd->need_commit = 0; pmd->need_commit = 0;
out:
return r; return r;
out_locked: out_locked:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册