提交 b4710669 编写于 作者: G Gao feng 提交者: Daniel P. Berrange

rename virBlkioDeviceWeightArrayClear to virBlkioDeviceArrayClear

Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
上级 529739cc
......@@ -882,7 +882,7 @@ virDomainXMLOptionGetNamespace(virDomainXMLOptionPtr xmlopt)
void
virBlkioDeviceWeightArrayClear(virBlkioDeviceWeightPtr deviceWeights,
virBlkioDeviceArrayClear(virBlkioDeviceWeightPtr deviceWeights,
int ndevices)
{
size_t i;
......@@ -2050,7 +2050,7 @@ void virDomainDefFree(virDomainDefPtr def)
VIR_FREE(def->description);
VIR_FREE(def->title);
virBlkioDeviceWeightArrayClear(def->blkio.devices,
virBlkioDeviceArrayClear(def->blkio.devices,
def->blkio.ndevices);
VIR_FREE(def->blkio.devices);
......
......@@ -1911,7 +1911,7 @@ struct _virDomainIdMapDef {
};
void virBlkioDeviceWeightArrayClear(virBlkioDeviceWeightPtr deviceWeights,
void virBlkioDeviceArrayClear(virBlkioDeviceWeightPtr deviceWeights,
int ndevices);
typedef struct _virDomainResourceDef virDomainResourceDef;
......
......@@ -104,7 +104,7 @@ virDomainAuditVcpu;
# conf/domain_conf.h
virBlkioDeviceWeightArrayClear;
virBlkioDeviceArrayClear;
virDiskNameToBusDeviceIndex;
virDiskNameToIndex;
virDomainActualNetDefFree;
......
......@@ -7505,7 +7505,7 @@ error:
virReportError(VIR_ERR_INVALID_ARG,
_("unable to parse device weight '%s'"), deviceWeightStr);
cleanup:
virBlkioDeviceWeightArrayClear(result, ndevices);
virBlkioDeviceArrayClear(result, ndevices);
VIR_FREE(result);
return -1;
}
......@@ -7636,7 +7636,7 @@ qemuDomainSetBlkioParameters(virDomainPtr dom,
&vm->def->blkio.ndevices,
devices, ndevices) < 0)
ret = -1;
virBlkioDeviceWeightArrayClear(devices, ndevices);
virBlkioDeviceArrayClear(devices, ndevices);
VIR_FREE(devices);
}
}
......@@ -7673,7 +7673,7 @@ qemuDomainSetBlkioParameters(virDomainPtr dom,
&persistentDef->blkio.ndevices,
devices, ndevices) < 0)
ret = -1;
virBlkioDeviceWeightArrayClear(devices, ndevices);
virBlkioDeviceArrayClear(devices, ndevices);
VIR_FREE(devices);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册