btrfs: qgroup: Check if qgroup reserved space leaked
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 13 Oct 2015 01:53:10 +0000 (09:53 +0800)
committerChris Mason <clm@fb.com>
Thu, 22 Oct 2015 01:41:10 +0000 (18:41 -0700)
commit56fa9d0762ed17153c1bdff3c0aeeecbe522b504
tree8a71bc780898b0fd8a8504187dd78be09a3ff948
parent51773bec7ea352f3b9afa11ecfc72324c7977335
btrfs: qgroup: Check if qgroup reserved space leaked

Add check at btrfs_destroy_inode() time to detect qgroup reserved space
leak.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c
fs/btrfs/qgroup.c
fs/btrfs/qgroup.h