Re: [PATCH 1/2] kvm tools: Add interval red-black tree helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Sasha Levin <levinsasha928@xxxxxxxxx> wrote:

> On Tue, 2011-05-17 at 09:41 +0200, Ingo Molnar wrote:
> > * Sasha Levin <levinsasha928@xxxxxxxxx> wrote:
> > > +#include <kvm/interval-rbtree.h>
> > > +#include <stdio.h>
> > > +#include <stdlib.h>
> > 
> > At first sight i dont think you really need the stdio.h and stlib.h includes - 
> > you added these while having debugging printfs in the code?
> 
> We can drop either of them, but not both. Added it for size_t
> definition.

Oh, ok - sure!

> > So the rb-node iterator is named 'new', while the rb-int-node iterator is 
> > called 'this'? That does not make sense.
> 
> I actually took that bit from an example in Documentation/rbtree.txt of how 
> to write an insertion function :)

The kernel is far from perfect :-)

> Maybe it's worth doing another rbtree.txt patch and cleaning up the samples 
> there?

Yeah :-)

Thanks,

	Ingo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux