[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANN689H=AEC7-KqD+iw_3v_a-W_yJagXOv3Zxk7NMwV99gm_zQ@mail.gmail.com>
Date: Thu, 7 Nov 2013 03:52:01 -0800
From: Michel Lespinasse <walken@...gle.com>
To: Cody P Schafer <cody@...ux.vnet.ibm.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
EXT4 <linux-ext4@...r.kernel.org>, Jan Kara <jack@...e.cz>,
rostedt@...dmis.org, Davidlohr Bueso <davidlohr.bueso@...com>,
Seth Jennings <sjenning@...ux.vnet.ibm.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 02/11] rbtree/test: move rb_node to the middle of the
test struct
On Wed, Nov 6, 2013 at 5:42 PM, Cody P Schafer <cody@...ux.vnet.ibm.com> wrote:
> Avoid making the rb_node the first entry to catch some bugs around NULL
> checking the rb_node.
>
> Signed-off-by: Cody P Schafer <cody@...ux.vnet.ibm.com>
> ---
> 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;
Acked-by: Michel Lespinasse <walken@...gle.com>
--
Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists