diff options
author | Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> | 2010-03-04 22:25:21 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-03-04 22:25:21 -0500 |
commit | 64e290ec69be39f1887fa0b403c1e417b6b038e7 (patch) | |
tree | 8c7f87a2a4baa357e0cc04ab10b5af0b06273160 /fs/ext4/dir.c | |
parent | c437b2733520599a2c6e0dbcdeae611319f84707 (diff) |
ext4: fix up rb_root initializations to use RB_ROOT
ext4 uses rb_node = NULL; to zero rb_root at few places. Using
RB_ROOT as the initializer is more portable in case the underlying
implementation of rbtrees changes in the future.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/ext4/dir.c')
-rw-r--r-- | fs/ext4/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c index 29857ddd9e26..86cb6d86a048 100644 --- a/fs/ext4/dir.c +++ b/fs/ext4/dir.c | |||
@@ -305,7 +305,7 @@ static void free_rb_tree_fname(struct rb_root *root) | |||
305 | kfree(old); | 305 | kfree(old); |
306 | } | 306 | } |
307 | if (!parent) | 307 | if (!parent) |
308 | root->rb_node = NULL; | 308 | *root = RB_ROOT; |
309 | else if (parent->rb_left == n) | 309 | else if (parent->rb_left == n) |
310 | parent->rb_left = NULL; | 310 | parent->rb_left = NULL; |
311 | else if (parent->rb_right == n) | 311 | else if (parent->rb_right == n) |