summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/qgroup.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-10-13 03:53:10 +0200
committerChris Mason <clm@fb.com>2015-10-22 03:41:10 +0200
commit56fa9d0762ed17153c1bdff3c0aeeecbe522b504 (patch)
tree8a71bc780898b0fd8a8504187dd78be09a3ff948 /fs/btrfs/qgroup.h
parentbtrfs: qgroup: Avoid calling btrfs_free_reserved_data_space in clear_bit_hook (diff)
downloadlinux-56fa9d0762ed17153c1bdff3c0aeeecbe522b504.tar.xz
linux-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__ */