From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cody P Schafer Subject: [PATCH 2/2] rbtree/test: move rb_node to the middle of the test struct Date: Mon, 4 Nov 2013 17:40:02 -0800 Message-ID: <1383615602-1784-2-git-send-email-cody@linux.vnet.ibm.com> References: <52784ADF.1040104@linux.vnet.ibm.com> <1383615602-1784-1-git-send-email-cody@linux.vnet.ibm.com> Cc: Andreas Dilger , LKML , EXT4 , Cody P Schafer To: Andrew Morton , Jan Kara Return-path: In-Reply-To: <1383615602-1784-1-git-send-email-cody@linux.vnet.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org Avoid making the rb_node the first entry to catch some bugs around NULL checking the rb_node. Signed-off-by: Cody P Schafer --- lib/rbtree_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c index 31dd4cc..df6c125 100644 --- a/lib/rbtree_test.c +++ b/lib/rbtree_test.c @@ -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; -- 1.8.4.2