]> 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, 23 Jan 2015 13:21:53 +0000 (08:21 -0500)
commit0fb69d5c0b3669e0ac810dda26f0b601f47edc74
tree1884800bfe0973a96058445b26deae59eb3994dd
parent3811a1874095d78bbddea50ab5638654993ab4f4
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