]> git.hungrycats.org Git - linux/commit
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)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 19 Dec 2014 15:25:17 +0000 (10:25 -0500)
commitfb6a3c769174096a48df51fda00a501b0d72998b
tree6e4cfad4b4cd81ffe6e82c1aadeb4be7317cd0ab
parent71639c08e3eca3da61471d08efdf73933d077af1
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>
(cherry picked from commit 01eacb277909de942abbdff37584ad331e3893fe)
fs/btrfs/extent-tree.c