Skip to content

Commit

Permalink
btrfs: qgroup: Cleanup the remaining old reservation counters
Browse files Browse the repository at this point in the history
So qgroup is switched to new separate types reservation system.

Signed-off-by: Qu Wenruo <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
adam900710 authored and kdave committed Mar 30, 2018
1 parent 64ee4e7 commit 5c40507
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions fs/btrfs/qgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion fs/btrfs/qgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ struct btrfs_qgroup {
/*
* reservation tracking
*/
u64 reserved;
struct btrfs_qgroup_rsv rsv;

/*
Expand Down

0 comments on commit 5c40507

Please sign in to comment.