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

dm thin metadata: remove duplicate pmd initialisation

Remove some duplicate initialisation of struct dm_pool_metadata.

These pmd fields are initialised by both:
  __format_metadata's calls to dm_btree_empty
  __write_initial_superblock + __begin_transaction
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>
上级 8801e069
...@@ -512,11 +512,6 @@ static int __format_metadata(struct dm_pool_metadata *pmd) ...@@ -512,11 +512,6 @@ static int __format_metadata(struct dm_pool_metadata *pmd)
__setup_btree_details(pmd); __setup_btree_details(pmd);
pmd->root = 0;
pmd->details_root = 0;
pmd->trans_id = 0;
pmd->flags = 0;
r = dm_btree_empty(&pmd->info, &pmd->root); r = dm_btree_empty(&pmd->info, &pmd->root);
if (r < 0) if (r < 0)
goto bad_data_sm; goto bad_data_sm;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册