Btrfs: always clear a block group node when removing it from the tree
authorFilipe Manana <fdmanana@suse.com>
Thu, 4 Dec 2014 18:38:30 +0000 (18:38 +0000)
committerChris Mason <clm@fb.com>
Wed, 10 Dec 2014 20:22:29 +0000 (12:22 -0800)
commit01eacb277909de942abbdff37584ad331e3893fe
tree3eb85559ed3ffff6ccafe960cd804eb91b890ad7
parenta1e7e16ed36b9b059c5ee94e372287418e2dc7bc
Btrfs: always clear a block group node when removing it from the tree

Always clear a block group's rbnode after removing it from the rbtree to
ensure that any tasks that might be holding a reference on the block group
don't end up accessing stale rbnode left and right child pointers through
next_block_group().

This is a leftover from the change titled:
"Btrfs: fix invalid block group rbtree access after bg is removed"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c