mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: Rename original_memlock -> originalMemlock
That's more consistent with our usual naming convention. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
cfeb497f3f
commit
b431f3c7fd
@ -2808,7 +2808,7 @@ struct _virDomainObj {
|
|||||||
size_t ndeprecations;
|
size_t ndeprecations;
|
||||||
char **deprecations;
|
char **deprecations;
|
||||||
|
|
||||||
unsigned long long original_memlock; /* Original RLIMIT_MEMLOCK, zero if no
|
unsigned long long originalMemlock; /* Original RLIMIT_MEMLOCK, zero if no
|
||||||
* restore will be required later */
|
* restore will be required later */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -9248,15 +9248,15 @@ qemuDomainAdjustMaxMemLock(virDomainObjPtr vm,
|
|||||||
* value so that we can restore it once memory locking is no longer
|
* value so that we can restore it once memory locking is no longer
|
||||||
* required. Failing to obtain the current limit is not a critical
|
* required. Failing to obtain the current limit is not a critical
|
||||||
* failure, it just means we'll be unable to lower it later */
|
* failure, it just means we'll be unable to lower it later */
|
||||||
if (!vm->original_memlock) {
|
if (!vm->originalMemlock) {
|
||||||
if (virProcessGetMaxMemLock(vm->pid, &(vm->original_memlock)) < 0)
|
if (virProcessGetMaxMemLock(vm->pid, &(vm->originalMemlock)) < 0)
|
||||||
vm->original_memlock = 0;
|
vm->originalMemlock = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Once memory locking is no longer required, we can restore the
|
/* Once memory locking is no longer required, we can restore the
|
||||||
* original, usually very low, limit */
|
* original, usually very low, limit */
|
||||||
bytes = vm->original_memlock;
|
bytes = vm->originalMemlock;
|
||||||
vm->original_memlock = 0;
|
vm->originalMemlock = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bytes > 0 &&
|
if (bytes > 0 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user