Skip to content

Commit

Permalink
ext3 uses rb_node = NULL; to zero rb_root.
Browse files Browse the repository at this point in the history
The problem with this is that 17d9ddc ("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: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Eric Paris <eparis@redhat.com>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jan Kara <jack@suse.cz>
  • Loading branch information
Venkatesh Pallipadi authored and Jan Kara committed May 27, 2010
1 parent 4dea496 commit 1513b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext3/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1513b02

Please sign in to comment.