Lines Matching defs:vg
103 peg->lvseg->lv->vg->free_count += peg_new->len;
165 peg->lvseg->lv->vg->free_count -= area_len;
180 peg->lvseg->lv->vg->free_count += area_reduction;
250 int check_pv_segments(struct volume_group *vg)
260 dm_list_iterate_items(pvl, &vg->pvs) {
317 if (pv_count != vg->pv_count) {
319 pv_count, vg->pv_count);
323 if (free_count != vg->free_count) {
325 free_count, vg->free_count);
329 if (extent_count != vg->extent_count) {
331 extent_count, vg->extent_count);
338 static int _reduce_pv(struct physical_volume *pv, struct volume_group *vg, uint32_t new_pe_count)
374 vg->extent_count -= (old_pe_count - new_pe_count);
375 vg->free_count -= (old_pe_count - new_pe_count);
380 static int _extend_pv(struct physical_volume *pv, struct volume_group *vg,
401 vg->extent_count += (new_pe_count - old_pe_count);
402 vg->free_count += (new_pe_count - old_pe_count);
412 struct volume_group *vg,
426 return _extend_pv(pv, vg, new_pe_count);
428 return _reduce_pv(pv, vg, new_pe_count);