Commit 5c40507f authored by Qu Wenruo's avatar Qu Wenruo Committed by David Sterba

btrfs: qgroup: Cleanup the remaining old reservation counters

So qgroup is switched to new separate types reservation system.
Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 64ee4e75
...@@ -1070,19 +1070,6 @@ static void qgroup_dirty(struct btrfs_fs_info *fs_info, ...@@ -1070,19 +1070,6 @@ static void qgroup_dirty(struct btrfs_fs_info *fs_info,
list_add(&qgroup->dirty, &fs_info->dirty_qgroups); 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 * The easy accounting, we're updating qgroup relationship whose child qgroup
* only has exclusive extents. * only has exclusive extents.
......
...@@ -107,7 +107,6 @@ struct btrfs_qgroup { ...@@ -107,7 +107,6 @@ struct btrfs_qgroup {
/* /*
* reservation tracking * reservation tracking
*/ */
u64 reserved;
struct btrfs_qgroup_rsv rsv; struct btrfs_qgroup_rsv rsv;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment