提交 dbf128cb 编写于 作者: C Cody P Schafer 提交者: Linus Torvalds

rbtree/test: move rb_node to the middle of the test struct

Avoid making the rb_node the first entry to catch some bugs around NULL
checking the rb_node.
Signed-off-by: NCody P Schafer <cody@linux.vnet.ibm.com>
Cc: Michel Lespinasse <walken@google.com>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 56abde72
......@@ -8,8 +8,8 @@
#define CHECK_LOOPS 100
struct test_node {
struct rb_node rb;
u32 key;
struct rb_node rb;
/* following fields used for testing augmented rbtree functionality */
u32 val;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册