Skip to content

Fixup rb_root initializations to use RB_ROOT

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ext4: Fixup rb_root initializations to use RB_ROOTfs/ext4/block_validity.c fs/ext4/dir.c fs/ext4/mballoc.c+4 -41 reply
2/3ext3: Fixup rb_root initializations to use RB_ROOTfs/ext3/dir.c+1 -10 replies
3/3jffs2: Fixup rb_root initializations to use RB_ROOTfs/jffs2/readinode.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/3] Fixup rb_root initializations to use RB_ROOT

Eric Paris found a problem with rb_root initializations and sent a patch to fix it here:
http://lkml.indiana.edu/hypermail/linux/kernel/1002.2/02946.html
btrfs: use RB_ROOT to intialize rb_trees instead of setting rb_node to NULL

Based on that, a simple grep for "rb_node = NULL" showed few more similar usages in ext3, ext4 and jffs2. Here are the patches to fix those root.rb_node = NULL
usages to
root = RB_ROOT

Compile tested.