mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Remove unnecessary parameter from import_pool_pvs().
The dm_list * parameter is unnecessary since we are passing in 'vg' and the only caller of import_pool_pvs() passes '&vg->pvs' in the dm_list * parameter. Just use vg->pvs directly in the function. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
parent
94b713df08
commit
f6644ff8fe
@ -141,7 +141,7 @@ int import_pool_vg(struct volume_group *vg, struct dm_pool *mem, struct dm_list
|
|||||||
int import_pool_lvs(struct volume_group *vg, struct dm_pool *mem,
|
int import_pool_lvs(struct volume_group *vg, struct dm_pool *mem,
|
||||||
struct dm_list *pls);
|
struct dm_list *pls);
|
||||||
int import_pool_pvs(const struct format_type *fmt, struct volume_group *vg,
|
int import_pool_pvs(const struct format_type *fmt, struct volume_group *vg,
|
||||||
struct dm_list *pvs, struct dm_pool *mem, struct dm_list *pls);
|
struct dm_pool *mem, struct dm_list *pls);
|
||||||
int import_pool_pv(const struct format_type *fmt, struct dm_pool *mem,
|
int import_pool_pv(const struct format_type *fmt, struct dm_pool *mem,
|
||||||
struct volume_group *vg, struct physical_volume *pv,
|
struct volume_group *vg, struct physical_volume *pv,
|
||||||
struct pool_list *pl);
|
struct pool_list *pl);
|
||||||
|
@ -129,7 +129,7 @@ static struct volume_group *_build_vg_from_pds(struct format_instance
|
|||||||
if (!import_pool_vg(vg, smem, pds))
|
if (!import_pool_vg(vg, smem, pds))
|
||||||
return_NULL;
|
return_NULL;
|
||||||
|
|
||||||
if (!import_pool_pvs(fid->fmt, vg, &vg->pvs, smem, pds))
|
if (!import_pool_pvs(fid->fmt, vg, smem, pds))
|
||||||
return_NULL;
|
return_NULL;
|
||||||
|
|
||||||
if (!import_pool_lvs(vg, smem, pds))
|
if (!import_pool_lvs(vg, smem, pds))
|
||||||
|
@ -100,7 +100,7 @@ int import_pool_lvs(struct volume_group *vg, struct dm_pool *mem, struct dm_list
|
|||||||
}
|
}
|
||||||
|
|
||||||
int import_pool_pvs(const struct format_type *fmt, struct volume_group *vg,
|
int import_pool_pvs(const struct format_type *fmt, struct volume_group *vg,
|
||||||
struct dm_list *pvs, struct dm_pool *mem, struct dm_list *pls)
|
struct dm_pool *mem, struct dm_list *pls)
|
||||||
{
|
{
|
||||||
struct pv_list *pvl;
|
struct pv_list *pvl;
|
||||||
struct pool_list *pl;
|
struct pool_list *pl;
|
||||||
@ -120,7 +120,7 @@ int import_pool_pvs(const struct format_type *fmt, struct volume_group *vg,
|
|||||||
pl->pv = pvl->pv;
|
pl->pv = pvl->pv;
|
||||||
pvl->mdas = NULL;
|
pvl->mdas = NULL;
|
||||||
pvl->pe_ranges = NULL;
|
pvl->pe_ranges = NULL;
|
||||||
dm_list_add(pvs, &pvl->list);
|
dm_list_add(&vg->pvs, &pvl->list);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user