]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "btrfs: let btrfs_delete_unused_bgs() to clean relocated bgs"
authorChris Mason <clm@fb.com>
Mon, 10 Oct 2016 20:43:31 +0000 (13:43 -0700)
committerChris Mason <clm@fb.com>
Mon, 10 Oct 2016 20:43:31 +0000 (13:43 -0700)
commit5749537a989b319689552cab1c8222a27664ab14
tree1c2a40e3866668a68b4bfc4ff774295f3f660bc5
parent27ae553eaec2620e13cc19be793710893a75b4e1
Revert "btrfs: let btrfs_delete_unused_bgs() to clean relocated bgs"

This reverts commit 8623f843f03f1c1755aa1df9322e260850bc2a19.

When we remove devices, we free the device structures.  Delaying
btfs_remove_chunk() ends up hitting a use-after-free on them.

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