diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2015-10-13 09:53:10 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-10-21 18:41:10 -0700 |
commit | 56fa9d0762ed17153c1bdff3c0aeeecbe522b504 (patch) | |
tree | 8a71bc780898b0fd8a8504187dd78be09a3ff948 /fs/btrfs/qgroup.h | |
parent | 51773bec7ea352f3b9afa11ecfc72324c7977335 (diff) | |
download | op-kernel-dev-56fa9d0762ed17153c1bdff3c0aeeecbe522b504.zip op-kernel-dev-56fa9d0762ed17153c1bdff3c0aeeecbe522b504.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/qgroup.h b/fs/btrfs/qgroup.h index 686b60f..ecb2c14 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__ */ |