]> sourceware.org Git - lvm2.git/commitdiff
fix code in 2nd mda unignore loop to match 1st loop
authorAlasdair Kergon <agk@redhat.com>
Tue, 6 Jul 2010 20:09:38 +0000 (20:09 +0000)
committerAlasdair Kergon <agk@redhat.com>
Tue, 6 Jul 2010 20:09:38 +0000 (20:09 +0000)
lib/metadata/metadata.c

index 17f0715f0c042f8984b8752fcc26e1df6e214b96..f076b721b0946d1e015e67cb8f1f024d1c39e786 100644 (file)
@@ -1133,8 +1133,8 @@ static int _vg_unignore_mdas(struct volume_group *vg, uint32_t num_to_unignore)
                }
 
        dm_list_iterate_items(mda, &vg->fid->metadata_areas_in_use)
-               if (mda_is_ignored(mda) &&
-                   dm_bit(mda_to_unignore_bs, num_to_unignore - 1)) {
+               if (mda_is_ignored(mda) && (--mda_free_count,
+                   dm_bit(mda_to_unignore_bs, mda_free_count))) {
                        mda_set_ignored(mda, 0);
                        if (!--num_to_unignore)
                                goto out;
This page took 0.039393 seconds and 5 git commands to generate.