summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2012-07-27 16:08:13 +0200
committerAlasdair G Kergon <agk@redhat.com>2012-07-27 16:08:13 +0200
commitb79399510888998778ea6a3a281e30cbe59fdb37 (patch)
treeeaec46591b4ed89a0d7deb4470fe948270ccb00e /drivers/md
parentdm thin metadata: remove create parameter from __create_persistent_data_objects (diff)
downloadlinux-b79399510888998778ea6a3a281e30cbe59fdb37.tar.xz
linux-b79399510888998778ea6a3a281e30cbe59fdb37.zip
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: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-thin-metadata.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/md/dm-thin-metadata.c b/drivers/md/dm-thin-metadata.c
index 7317f1b4ab15..51b97f07aca3 100644
--- a/drivers/md/dm-thin-metadata.c
+++ b/drivers/md/dm-thin-metadata.c
@@ -512,11 +512,6 @@ static int __format_metadata(struct dm_pool_metadata *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);
if (r < 0)
goto bad_data_sm;