]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: resume balance on mount with qgroup
authorQu Wenruo <wqu@suse.com>
Thu, 23 May 2019 01:11:01 +0000 (09:11 +0800)
committerEryu Guan <guaneryu@gmail.com>
Fri, 24 May 2019 08:48:13 +0000 (16:48 +0800)
commitcfbd28d6c4c134cdab8181af160559bf42ff3351
tree12fe2748b1ac57e4d2314e22120a1c5331e47148
parente6e98a855a767537d9c6b4724bff556013f612db
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>
tests/btrfs/190 [new file with mode: 0755]
tests/btrfs/190.out [new file with mode: 0644]
tests/btrfs/group