1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-11 09:17:52 +03:00

qemu: rename function for getting the default hugepage size

Use qemuBuildMemoryGetDefaultPagesize.

Fixes: 6864d8f740
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Ján Tomko 2019-04-04 13:51:45 +02:00
parent 947ea8665e
commit b261c9c3a0

View File

@ -3409,8 +3409,8 @@ qemuBuildMemoryBackendPropsShare(virJSONValuePtr props,
static int static int
qemuqemuBuildMemoryBackendPropsGetPagesize(virQEMUDriverConfigPtr cfg, qemuBuildMemoryGetDefaultPagesize(virQEMUDriverConfigPtr cfg,
unsigned long long *pagesize) unsigned long long *pagesize)
{ {
virHugeTLBFSPtr p; virHugeTLBFSPtr p;
@ -3568,7 +3568,7 @@ qemuBuildMemoryBackendProps(virJSONValuePtr *backendProps,
needHugepage = false; needHugepage = false;
useHugepage = false; useHugepage = false;
} else if (pagesize == 0) { } else if (pagesize == 0) {
if (qemuqemuBuildMemoryBackendPropsGetPagesize(cfg, &pagesize) < 0) if (qemuBuildMemoryGetDefaultPagesize(cfg, &pagesize) < 0)
goto cleanup; goto cleanup;
} }