]> git.baikalelectronics.ru Git - kernel.git/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)
committerChris Mason <clm@fb.com>
Wed, 10 Dec 2014 20:22:29 +0000 (12:22 -0800)
commitd4df862fa300b147c30842a8984588aa69370134
tree3eb85559ed3ffff6ccafe960cd804eb91b890ad7
parentd8df0d04705c69b13aa697bde6884c5609bea086
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