Commit 19c4d2f
committed
Revert "btrfs: let btrfs_delete_unused_bgs() to clean relocated bgs"
This reverts commit 5d8eb6f.
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>1 parent 196e024 commit 19c4d2f
2 files changed
Lines changed: 15 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10849 | 10849 | | |
10850 | 10850 | | |
10851 | 10851 | | |
10852 | | - | |
| 10852 | + | |
10853 | 10853 | | |
10854 | 10854 | | |
10855 | 10855 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2906 | 2906 | | |
2907 | 2907 | | |
2908 | 2908 | | |
| 2909 | + | |
2909 | 2910 | | |
2910 | | - | |
2911 | 2911 | | |
2912 | 2912 | | |
2913 | 2913 | | |
| |||
2937 | 2937 | | |
2938 | 2938 | | |
2939 | 2939 | | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
2940 | 2948 | | |
2941 | | - | |
2942 | | - | |
| 2949 | + | |
| 2950 | + | |
2943 | 2951 | | |
2944 | | - | |
2945 | | - | |
2946 | | - | |
2947 | | - | |
2948 | | - | |
2949 | | - | |
2950 | | - | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
2951 | 2955 | | |
2952 | 2956 | | |
2953 | 2957 | | |
| |||
0 commit comments