Thread (38 messages) 38 messages, 4 authors, 2012-08-07

Re: [PATCH v2 8/9] rbtree: faster augmented rbtree manipulation

From: Michel Lespinasse <hidden>
Date: 2012-08-06 21:34:29
Also in: lkml

On Mon, Aug 6, 2012 at 7:25 AM, Peter Zijlstra [off-list ref] wrote:
On Thu, 2012-08-02 at 15:34 -0700, Michel Lespinasse wrote:
quoted
+struct rb_augment_callbacks {
+       void (*propagate)(struct rb_node *node, struct rb_node *stop);
+       void (*copy)(struct rb_node *old, struct rb_node *new);
+       void (*rotate)(struct rb_node *old, struct rb_node *new);
+};
Should we make that const pointers? Daniel?
I don't think it would hurt, but note that each function taking this
as an argument takes it as a const struct rb_augment_callbacks *, so I
doubt the extra consts would help either.

-- 
Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help