summaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
authorVenkatesh Pallipadi2010-03-05 04:25:21 +0100
committerTheodore Ts'o2010-03-05 04:25:21 +0100
commit64e290ec69be39f1887fa0b403c1e417b6b038e7 (patch)
tree8c7f87a2a4baa357e0cc04ab10b5af0b06273160 /fs/ext4/mballoc.c
parentext4: Code cleanup for EXT4_IOC_MOVE_EXT ioctl (diff)
downloadkernel-qcow2-linux-64e290ec69be39f1887fa0b403c1e417b6b038e7.tar.gz
kernel-qcow2-linux-64e290ec69be39f1887fa0b403c1e417b6b038e7.tar.xz
kernel-qcow2-linux-64e290ec69be39f1887fa0b403c1e417b6b038e7.zip
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/mballoc.c')
-rw-r--r--fs/ext4/mballoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 37d2438e0cb4..abb11e328b65 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2253,7 +2253,7 @@ int ext4_mb_add_groupinfo(struct super_block *sb, ext4_group_t group,
INIT_LIST_HEAD(&meta_group_info[i]->bb_prealloc_list);
init_rwsem(&meta_group_info[i]->alloc_sem);
- meta_group_info[i]->bb_free_root.rb_node = NULL;
+ meta_group_info[i]->bb_free_root = RB_ROOT;
#ifdef DOUBLE_CHECK
{