summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/qgroup.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2017-12-12 15:34:28 +0800
committerDavid Sterba <dsterba@suse.com>2018-03-31 01:41:13 +0200
commit5c40507ffb1bbbc8eeeaa6d8da181f431cb83d97 (patch)
tree926fba295f6f79b41646271ed876b7ab482c32aa /fs/btrfs/qgroup.c
parent64ee4e751a1c43b155afe2c1c07212893836f36d (diff)
downloadlinux-5c40507ffb1bbbc8eeeaa6d8da181f431cb83d97.tar.gz
linux-5c40507ffb1bbbc8eeeaa6d8da181f431cb83d97.tar.bz2
linux-5c40507ffb1bbbc8eeeaa6d8da181f431cb83d97.zip
btrfs: qgroup: Cleanup the remaining old reservation counters
So qgroup is switched to new separate types reservation system. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/qgroup.c')
-rw-r--r--fs/btrfs/qgroup.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c
index 8ec103deb361..c0deebfecd93 100644
--- a/fs/btrfs/qgroup.c
+++ b/fs/btrfs/qgroup.c
@@ -1070,19 +1070,6 @@ static void qgroup_dirty(struct btrfs_fs_info *fs_info,
list_add(&qgroup->dirty, &fs_info->dirty_qgroups);
}
-static void report_reserved_underflow(struct btrfs_fs_info *fs_info,
- struct btrfs_qgroup *qgroup,
- u64 num_bytes)
-{
-#ifdef CONFIG_BTRFS_DEBUG
- WARN_ON(qgroup->reserved < num_bytes);
- btrfs_debug(fs_info,
- "qgroup %llu reserved space underflow, have: %llu, to free: %llu",
- qgroup->qgroupid, qgroup->reserved, num_bytes);
-#endif
- qgroup->reserved = 0;
-}
-
/*
* The easy accounting, we're updating qgroup relationship whose child qgroup
* only has exclusive extents.