mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00: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,8 +2808,8 @@ struct _virDomainObj {
|
||||
size_t ndeprecations;
|
||||
char **deprecations;
|
||||
|
||||
unsigned long long original_memlock; /* Original RLIMIT_MEMLOCK, zero if no
|
||||
* restore will be required later */
|
||||
unsigned long long originalMemlock; /* Original RLIMIT_MEMLOCK, zero if no
|
||||
* restore will be required later */
|
||||
};
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainObj, virObjectUnref);
|
||||
|
@ -9248,15 +9248,15 @@ qemuDomainAdjustMaxMemLock(virDomainObjPtr vm,
|
||||
* value so that we can restore it once memory locking is no longer
|
||||
* required. Failing to obtain the current limit is not a critical
|
||||
* failure, it just means we'll be unable to lower it later */
|
||||
if (!vm->original_memlock) {
|
||||
if (virProcessGetMaxMemLock(vm->pid, &(vm->original_memlock)) < 0)
|
||||
vm->original_memlock = 0;
|
||||
if (!vm->originalMemlock) {
|
||||
if (virProcessGetMaxMemLock(vm->pid, &(vm->originalMemlock)) < 0)
|
||||
vm->originalMemlock = 0;
|
||||
}
|
||||
} else {
|
||||
/* Once memory locking is no longer required, we can restore the
|
||||
* original, usually very low, limit */
|
||||
bytes = vm->original_memlock;
|
||||
vm->original_memlock = 0;
|
||||
bytes = vm->originalMemlock;
|
||||
vm->originalMemlock = 0;
|
||||
}
|
||||
|
||||
if (bytes > 0 &&
|
||||
|
Loading…
Reference in New Issue
Block a user