[libvirt] [PATCH 3/6] qemu: Add qemuDomainAdjustMaxMemLock()
Andrea Bolognani
abologna at redhat.com
Thu Dec 10 15:31:06 UTC 2015
On Wed, 2015-12-09 at 13:02 -0500, John Ferlan wrote:
> On 11/24/2015 08:56 AM, Andrea Bolognani wrote:
> [...]
>
> > + }
> > +
> > + /* Don't do anything unless we're actually setting a limit */
> > + if (bytes) {
> > + if (virProcessSetMaxMemLock(vm->pid, bytes) < 0)
> > + goto out;
> > + }
>
> virProcessSetMaxMemLock aready checks:
>
> if (bytes == 0)
> return 0;
>
> So the "if (bytes)" is unnecessary
Good catch, I will remove the check and update the comment.
Cheers.
--
Andrea Bolognani
Software Engineer - Virtualization Team
More information about the libvir-list
mailing list