Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1513b02c authored by Venkatesh Pallipadi's avatar Venkatesh Pallipadi Committed by Jan Kara
Browse files

ext3 uses rb_node = NULL; to zero rb_root.



The problem with this is that 17d9ddc7 ("rbtree: Add support
for augmented rbtrees") in the linux-next tree adds a new field to that
struct which needs to be NULLas well.  This patch uses RB_ROOT as the
intializer so all of the relevant fields will be NULL'd.

Signed-off-by: default avatarVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Eric Paris <eparis@redhat.com>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 4dea4969
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -297,7 +297,7 @@ static void free_rb_tree_fname(struct rb_root *root)
			kfree (old);
		}
		if (!parent)
			root->rb_node = NULL;
			*root = RB_ROOT;
		else if (parent->rb_left == n)
			parent->rb_left = NULL;
		else if (parent->rb_right == n)