Thread (1 message) 1 message, 1 author, 2021-05-12

Re: 9p: fscache duplicate cookie

From: Luis Henriques <hidden>
Date: 2021-05-12 10:09:17

David Howells [off-list ref] writes:
Luis Henriques [off-list ref] wrote:
quoted
+		if (data->inode < inode)
+			node = node->rb_left;
+		else if (data->inode > inode)
+			node = node->rb_right;
If you're just using a plain integer as the key into your debug tree, an
xarray, IDA or IDR might be easier to use.
Yep, xarray actually crossed my mind but rbtrees were still fresh in my
memory.  I'll look into the xarray API next time (which is likely to be
much simpler, I know).

Cheers,
-- 
Luis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help