Btrfs: use RB_ROOT to intialize rb_trees instead of setting rb_node to NULL
btrfs inialize rb trees in quite a number of places by settin rb_node = NULL; The problem with this is that 17d9ddc7 in the linux-next tree adds a new field to that struct which needs to be NULL for the new rbtree library code to work properly. This patch uses RB_ROOT as the intializer so all of the relevant fields will be NULL'd. Without the patch I get a panic. Signed-off-by:Eric Paris <eparis@redhat.com> Acked-by:
Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by:
Chris Mason <chris.mason@oracle.com>
Showing
- fs/btrfs/disk-io.c 2 additions, 2 deletionsfs/btrfs/disk-io.c
- fs/btrfs/extent_io.c 2 additions, 2 deletionsfs/btrfs/extent_io.c
- fs/btrfs/extent_map.c 1 addition, 1 deletionfs/btrfs/extent_map.c
- fs/btrfs/free-space-cache.c 2 additions, 2 deletionsfs/btrfs/free-space-cache.c
- fs/btrfs/ordered-data.h 1 addition, 1 deletionfs/btrfs/ordered-data.h
- fs/btrfs/ref-cache.h 1 addition, 1 deletionfs/btrfs/ref-cache.h
- fs/btrfs/relocation.c 2 additions, 2 deletionsfs/btrfs/relocation.c
- fs/btrfs/transaction.c 1 addition, 1 deletionfs/btrfs/transaction.c
Loading
Please register or sign in to comment