diff options
author | Neil Brown <neilb@suse.de> | 2007-12-14 20:14:00 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-12-14 20:14:00 +1100 |
commit | df37ffc0393b919ba5607bb48b2eaf2f9a1832d7 (patch) | |
tree | da5119c602aa6e1c40248b5a9c8312aedceaeedb /Examine.c | |
parent | 2faf1f5f635419a922cf0072c435a23a78b793a7 (diff) |
Allow metadata handlers to free their own superblock.
As the metadata handler allocates the superblock, it should free it
too. DDF will have a more complex 'superblock' which needs more complex
freeing.
Diffstat (limited to 'Examine.c')
-rw-r--r-- | Examine.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -119,7 +119,7 @@ int Examine(mddev_dev_t devlist, int brief, int scan, st->ss->getinfo_super(&ap->info, super); } else { st->ss->getinfo_super(&ap->info, super); - free(super); + st->ss->free_super(super); } if (!(ap->info.disk.state & MD_DISK_SYNC)) ap->spares++; @@ -128,7 +128,7 @@ int Examine(mddev_dev_t devlist, int brief, int scan, } else { printf("%s:\n",devlist->devname); st->ss->examine_super(super, homehost); - free(super); + st->ss->free_super(super); } } if (brief) { @@ -145,7 +145,7 @@ int Examine(mddev_dev_t devlist, int brief, int scan, sep=','; } } - free(ap->super); + ap->st->ss->free_super(ap->super); /* FIXME free ap */ if (ap->spares || brief > 1) printf("\n"); |