summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/qgroup.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-10-13 09:53:10 +0800
committerChris Mason <clm@fb.com>2015-10-21 18:41:10 -0700
commit56fa9d0762ed17153c1bdff3c0aeeecbe522b504 (patch)
tree8a71bc780898b0fd8a8504187dd78be09a3ff948 /fs/btrfs/qgroup.h
parent51773bec7ea352f3b9afa11ecfc72324c7977335 (diff)
downloadlinux-stable-56fa9d0762ed17153c1bdff3c0aeeecbe522b504.tar.gz
linux-stable-56fa9d0762ed17153c1bdff3c0aeeecbe522b504.tar.bz2
linux-stable-56fa9d0762ed17153c1bdff3c0aeeecbe522b504.zip
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>
Diffstat (limited to 'fs/btrfs/qgroup.h')
-rw-r--r--fs/btrfs/qgroup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/qgroup.h b/fs/btrfs/qgroup.h
index 686b60f60b61..ecb2c143ef75 100644
--- a/fs/btrfs/qgroup.h
+++ b/fs/btrfs/qgroup.h
@@ -105,4 +105,5 @@ int btrfs_qgroup_free_data(struct inode *inode, u64 start, u64 len);
int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes);
void btrfs_qgroup_free_meta_all(struct btrfs_root *root);
void btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes);
+void btrfs_qgroup_check_reserved_leak(struct inode *inode);
#endif /* __BTRFS_QGROUP__ */