mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-02 22:42:30 +03:00
remove unused variable
resulting from commit cb798ee1c1
"lvmcache: remove lvmcache_update_vg_from_write"
This commit is contained in:
parent
18f451e09e
commit
0c80ea8847
@ -3100,7 +3100,6 @@ static int _vg_commit_mdas(struct volume_group *vg)
|
||||
{
|
||||
struct metadata_area *mda, *tmda;
|
||||
DM_LIST_INIT(ignored);
|
||||
int failed = 0;
|
||||
int good = 0;
|
||||
|
||||
/* Rearrange the metadata_areas_in_use so ignored mdas come first. */
|
||||
@ -3115,11 +3114,9 @@ static int _vg_commit_mdas(struct volume_group *vg)
|
||||
dm_list_iterate_items(mda, &vg->fid->metadata_areas_in_use) {
|
||||
if (mda->status & MDA_FAILED)
|
||||
continue;
|
||||
failed = 0;
|
||||
if (mda->ops->vg_commit &&
|
||||
!mda->ops->vg_commit(vg->fid, vg, mda)) {
|
||||
stack;
|
||||
failed = 1;
|
||||
} else
|
||||
good++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user