<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/include/linux/rbtree.h, branch tmp/leds/core</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=tmp%2Fleds%2Fcore</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=tmp%2Fleds%2Fcore'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2009-01-10T14:04:33Z</updated>
<entry>
<title>rbtree: add const qualifier to some functions</title>
<updated>2009-01-10T14:04:33Z</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2009-01-10T11:12:09Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f4b477c47332367d35686bd2b808c2156b96d7c7'/>
<id>urn:sha1:f4b477c47332367d35686bd2b808c2156b96d7c7</id>
<content type='text'>
The 'rb_first()', 'rb_last()', 'rb_next()' and 'rb_prev()' calls
take a pointer to an RB node or RB root. They do not change the
pointed objects, so add a 'const' qualifier in order to make life
of the users of these functions easier.

Indeed, if I have my own constant pointer &amp;const struct my_type *p,
and I call 'rb_next(&amp;p-&gt;rb)', I get a GCC warning:

warning: passing argument 1 of ‘rb_next’ discards qualifiers from pointer target type

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rbtree: fixed reversed RB_EMPTY_NODE and rb_next/prev</title>
<updated>2006-09-30T18:26:56Z</updated>
<author>
<name>Jens Axboe</name>
<email>axboe@suse.de</email>
</author>
<published>2006-07-11T19:15:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=10fd48f2376db52f08bf0420d2c4f580e39269e1'/>
<id>urn:sha1:10fd48f2376db52f08bf0420d2c4f580e39269e1</id>
<content type='text'>
The conditions got reserved. Also make rb_next() and rb_prev() check
for the empty condition.

Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
</content>
</entry>
<entry>
<title>[PATCH] rbtree: support functions used by the io schedulers</title>
<updated>2006-06-23T15:10:39Z</updated>
<author>
<name>Jens Axboe</name>
<email>axboe@suse.de</email>
</author>
<published>2006-06-21T07:36:18Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=dd67d051529387f6e44d22d1d5540ef281965fdd'/>
<id>urn:sha1:dd67d051529387f6e44d22d1d5540ef281965fdd</id>
<content type='text'>
They all duplicate macros to check for empty root and/or node, and
clearing a node. So put those in rbtree.h.

Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
</content>
</entry>
<entry>
<title>[RBTREE] Switch rb_colour() et al to en_US spelling of 'color' for consistency</title>
<updated>2006-06-05T19:19:05Z</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw2@infradead.org</email>
</author>
<published>2006-06-05T19:19:05Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=2f3243aebd8df4d9eecaeca04bbff6c7dbfb2142'/>
<id>urn:sha1:2f3243aebd8df4d9eecaeca04bbff6c7dbfb2142</id>
<content type='text'>
Since rb_insert_color() is part of the _public_ API, while the others are
purely internal, switch to be consistent with that.

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[RBTREE] Add explicit alignment to sizeof(long) for struct rb_node.</title>
<updated>2006-04-21T22:15:39Z</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw2@infradead.org</email>
</author>
<published>2006-04-21T22:15:39Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e977145aeaad23d443686f2a2d5b32800d1607c5'/>
<id>urn:sha1:e977145aeaad23d443686f2a2d5b32800d1607c5</id>
<content type='text'>
Seems like a strange requirement, but allegedly it was necessary for
struct address_space on CRIS, because it otherwise ended up being only
byte-aligned. It's harmless enough, and easier to just do it than to
prove it isn't necessary... although I really ought to dig out my etrax
board and test it some time.

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[RBTREE] Merge colour and parent fields of struct rb_node.</title>
<updated>2006-04-21T12:35:51Z</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw2@infradead.org</email>
</author>
<published>2006-04-21T12:35:51Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=55a981027fc393c86de2c4e7836c9515088a9a58'/>
<id>urn:sha1:55a981027fc393c86de2c4e7836c9515088a9a58</id>
<content type='text'>
We only used a single bit for colour information, so having a whole
machine word of space allocated for it was a bit wasteful. Instead,
store it in the lowest bit of the 'parent' pointer, since that was
always going to be aligned anyway.

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[RBTREE] Add accessor macros for colour and parent fields of rb_node</title>
<updated>2006-04-21T12:12:44Z</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw2@infradead.org</email>
</author>
<published>2006-04-21T12:12:44Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=7fe1e133bf45b0fe70491ed3d4c5b491feff7aa8'/>
<id>urn:sha1:7fe1e133bf45b0fe70491ed3d4c5b491feff7aa8</id>
<content type='text'>
This is in preparation for merging those fields into a single
'unsigned long', because using a whole machine-word for a single bit
of colour information is wasteful.

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] use container_of() for rb_entry()</title>
<updated>2004-10-20T01:38:30Z</updated>
<author>
<name>Paolo \'Blaisorblade\' Giarrusso</name>
<email>blaisorblade_spam@yahoo.it</email>
</author>
<published>2004-10-20T01:38:30Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=551107ca34a5e350c3bcaf20b76301db0cf3a242'/>
<id>urn:sha1:551107ca34a5e350c3bcaf20b76301db0cf3a242</id>
<content type='text'>
Use, in the rb_entry definition, the container_of macro instead of
reinventing the wheel; compared to using offset_of() as I did in the prev. 
version, it has type safety checking.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso &lt;blaisorblade_spam@yahoo.it&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[RBTREE]: Add rb_last()</title>
<updated>2004-08-15T12:09:07Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2004-08-15T12:09:07Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=26b561fb8226c4a33ec74b3a6a5bbde57d50175f'/>
<id>urn:sha1:26b561fb8226c4a33ec74b3a6a5bbde57d50175f</id>
<content type='text'>
Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@redhat.com&gt;
</content>
</entry>
<entry>
<title>[PATCH] ext3 indexed directory support</title>
<updated>2002-10-08T04:28:11Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@digeo.com</email>
</author>
<published>2002-10-08T04:28:11Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=da5223ff390a6dc975989debf7905640fbb979b7'/>
<id>urn:sha1:da5223ff390a6dc975989debf7905640fbb979b7</id>
<content type='text'>
Daniel Phillips' indexed directory support.  Ported from ext2 by
Christopher Li.  Contributions from Andreas Dilger, Stephen Tweedie,
lots from Ted.

It requires e2fsprogs-1.29; I've updated the Changes file to reflect
that.
</content>
</entry>
</feed>
