btrfs: EDQUOTA leaks reserved data space
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 28 Jun 2016 01:54:51 +0000 (09:54 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 1 Jul 2016 15:12:50 +0000 (23:12 +0800)
commit5bde2583c38ce401b4cff81c182dcd49985dbe22
treeaa6c20adfddad5bfb9bb318266775317d0a6b58f
parente78540a5661a2bff2f2f710fa65cda3fe2fe0dc1
btrfs: EDQUOTA leaks reserved data space

When btrfs hits EDQUOTA when reserving data space, it will leak
already reserved data space.

This test case will check it by using more restrict enospc_debug
mount option to trigger kernel warning at umount time.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/btrfs/126 [new file with mode: 0755]
tests/btrfs/126.out [new file with mode: 0644]
tests/btrfs/group