summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
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/inode.c
parent51773bec7ea352f3b9afa11ecfc72324c7977335 (diff)
downloadop-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/inode.c')
-rw-r--r--fs/btrfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 3229c13..df6b93f 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -9108,6 +9108,7 @@ void btrfs_destroy_inode(struct inode *inode)
btrfs_put_ordered_extent(ordered);
}
}
+ btrfs_qgroup_check_reserved_leak(inode);
inode_tree_del(inode);
btrfs_drop_extent_cache(inode, 0, (u64)-1, 0);
free:
OpenPOWER on IntegriCloud