btrfs: resume balance on mount with qgroup

There are two regressions related to balance resume:
- Kernel NULL pointer dereference at mount time
  Introduced in v5.0
- Kernel BUG_ON() just after mount
  Introduced in v5.1

The kernel fixes are:
"btrfs: qgroup: Check if @bg is NULL to avoid NULL pointer
 dereference"
"btrfs: reloc: Also queue orphan reloc tree for cleanup to
 avoid BUG_ON()"

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Qu Wenruo
2019-05-23 09:11:01 +08:00
committed by Eryu Guan
parent e6e98a855a
commit cfbd28d6c4
3 changed files with 95 additions and 0 deletions
+1
View File
@@ -192,3 +192,4 @@
187 auto send dedupe clone balance
188 auto quick send prealloc punch
189 auto quick send clone
190 auto quick replay balance qgroup