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>
This commit is contained in:
Qu Wenruo
2016-06-28 09:54:51 +08:00
committed by Eryu Guan
parent e78540a566
commit 5bde2583c3
3 changed files with 76 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
QA output created by 126
pwrite64: Disk quota exceeded