mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: function embeded
It's used just in one place now.
This commit is contained in:
parent
21798418fc
commit
b23e125982
@ -283,16 +283,6 @@ static int _determine_snapshot_type(struct volume_group *vg,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _lvcreate_update_pool_params(struct volume_group *vg,
|
|
||||||
struct lvcreate_params *lp)
|
|
||||||
{
|
|
||||||
return update_pool_params(lp->segtype, vg, lp->target_attr,
|
|
||||||
lp->passed_args, lp->extents,
|
|
||||||
&lp->pool_metadata_size,
|
|
||||||
&lp->thin_chunk_size_calc_policy, &lp->chunk_size,
|
|
||||||
&lp->discards, &lp->zero);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _determine_cache_argument
|
* _determine_cache_argument
|
||||||
* @vg
|
* @vg
|
||||||
@ -458,7 +448,11 @@ static int _update_extents_params(struct volume_group *vg,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (lp->create_pool) {
|
if (lp->create_pool) {
|
||||||
if (!_lvcreate_update_pool_params(vg, lp))
|
if (!update_pool_params(lp->segtype, vg, lp->target_attr,
|
||||||
|
lp->passed_args, lp->extents,
|
||||||
|
&lp->pool_metadata_size,
|
||||||
|
&lp->thin_chunk_size_calc_policy, &lp->chunk_size,
|
||||||
|
&lp->discards, &lp->zero))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
if (!(lp->pool_metadata_extents =
|
if (!(lp->pool_metadata_extents =
|
||||||
|
Loading…
Reference in New Issue
Block a user